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

URLs with _'s are rejected by clean_param(..., PARAM_URL)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not a bug
    • Icon: Major Major
    • 1.9.2
    • 1.9.1
    • MNet
    • None
    • Linux, Php v4.3.10
    • MySQL
    • MOODLE_19_STABLE
    • MOODLE_19_STABLE

      To reproduce:
      (Turn networking on?)
      Goto Admin->Networking->Peers
      Under "Add a new host", enter clsa_mnet_a.mroomsonline.com
      Moodle (not Mahara)
      Press the "Add host" button

      Error message: "Invalid URL parameter."

      I believe this is being rejected by clean_param in this code (line 82 in admin/mnet/peers.php):
      ---------
      $temp_wwwroot = clean_param($form->wwwroot, PARAM_URL);
      if ($temp_wwwroot !== $form->wwwroot)

      { trigger_error("We now parse the wwwroot with PARAM_URL. Your URL will need to have a valid TLD, etc."); print_error("invalidurl", 'mnet','peers.php'); exit; }

      ------

      (I can connect to the host correctly if I use clsamneta.mroomsonline.com)

            skodak Petr Skoda
            tiuzzol Terri Matsakis
            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.