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

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

      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 }

            mjollnir Penny Leach (Inactive)
            saint-georges Arnaud saint-Georges (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.