Moodle
  1. Moodle
  2. MDL-12526

CAS Notice line 25 IIS $_SERVER['REQUEST_URI']

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.8.3
    • Fix Version/s: 1.8.14, 1.9.10
    • Component/s: Authentication
    • Labels:
      None
    • Environment:
      Windows Server 2003
      IIS 6.0
      PHP 5.2.3
    • Affected Branches:
      MOODLE_18_STABLE
    • Fixed Branches:
      MOODLE_18_STABLE, MOODLE_19_STABLE

      Description

      When visiting the site I get a CAS warning the variable is undeclared on line 25 of cas.php.

      The hack by Vangelis Haniotakis to handle the absence of $_SERVER['REQUEST_URI'] in IIS doesn't work, you cannot check !$_SERVER['REQUEST_URI'], isset($_SERVER['REQUEST_URI']) should be used instead. The current one (using !) assumes the variable exists, returning a notice.

      I've attached my copy that works, no errors or notices.

        Gliffy Diagrams

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: