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

IIS Request_URI fix doesn't work

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Minor Minor
    • None
    • 2.7.1
    • JavaScript, Navigation
    • IIS
    • MOODLE_27_STABLE

      In YUI_combo.php

      else if (isset($_SERVER['QUERY_STRING']) and strpos($_SERVER['QUERY_STRING'], '?') !== false) {
              // note: buggy or misconfigured IIS does return the query string in REQUEST_URI
              return array($_SERVER['QUERY_STRING'], false);
      

      should be

      else if (isset($_SERVER['QUERY_STRING']) and strpos($_SERVER['QUERY_STRING'], '?') == false) {
              // note: buggy or misconfigured IIS does return the query string in REQUEST_URI
              return array($_SERVER['QUERY_STRING'], false);
      

      This bug prevented the expandable menu items from expanding. That change made them work. As far as I can tell, this bug is in most versions.

      I am not sure what exactly is going on here but QUERY_STRING returns everything after the ? so checking for the question mark doesn't make sense to me.

            Unassigned Unassigned
            nseward Nicholas Seward
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

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