Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-10173

Mnet : SQL syntax error if some quote in the title of the host homepage

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Duplicate
    • 1.8, 1.8.1
    • None
    • MNet
    • None
    • MOODLE_18_STABLE

    Description

      We must protect the 'name' of the host if extracted from its homepage.

      Look at peer.php:
      49 // TODO: In reality, this will be prohibitively slow... need another
      50 // default - maybe blank string
      51 $homepage = file_get_contents($wwwroot);
      52 if (!empty($homepage)) {
      53 $count = preg_match("@<title>(.*)</title>@siU", $homepage, $matches);
      54 if ($count > 0)

      { 55 $this->name = $matches[1]; 56 }

      57 }

      Attachments

        Issue Links

          Activity

            People

              mjollnir Penny Leach
              saint-georges Arnaud saint-Georges
              David Woloszyn, Huong Nguyen, Jake Dallimore, Meirza, Michael Hawkins, Raquel Ortega, Safat Shahin, Stevani Andolo
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: