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

            Brian M created issue -
            Petr Skoda made changes -
            Field Original Value New Value
            Link This issue is duplicated by MDL-12659 [ MDL-12659 ]
            Clinton Graham made changes -
            Link This issue will be resolved by MDL-24789 [ MDL-24789 ]
            Petr Skoda made changes -
            Status Open [ 1 ] Resolved [ 5 ]
            Fix Version/s 1.8.14 [ 10411 ]
            Fix Version/s 1.9.10 [ 10407 ]
            Resolution Fixed [ 1 ]
            Martin Dougiamas made changes -
            Status Resolved [ 5 ] Closed [ 6 ]
            QA Assignee nobody
            Martin Dougiamas made changes -
            Workflow jira [ 23814 ] MDL Workflow [ 58130 ]
            Martin Dougiamas made changes -
            Workflow MDL Workflow [ 58130 ] MDL Full Workflow [ 87276 ]

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: