From b44ff4e45b728da9fce0bb70dbebc013be933cc2 Mon Sep 17 00:00:00 2001 From: Inaki Date: Fri, 3 Sep 2010 16:54:03 +0000 Subject: [PATCH] MDL-23864 auth/cas Coding error: Undefined index REQUEST_URI in auth/cas/CAS/CAS.php Patch our local copy (and record the change) while upstream fixes it (see https://issues.jasig.org/browse/PHPCAS-81 ) --- auth/cas/CAS/CAS.php | 2 +- auth/cas/CAS/readme_moodle.txt | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 auth/cas/CAS/readme_moodle.txt diff --git a/auth/cas/CAS/CAS.php b/auth/cas/CAS/CAS.php index 38c4cf672d241..52fe40178ab3d 100644 --- a/auth/cas/CAS/CAS.php +++ b/auth/cas/CAS/CAS.php @@ -32,7 +32,7 @@ // // hack by Vangelis Haniotakis to handle the absence of $_SERVER['REQUEST_URI'] in IIS // -if (!$_SERVER['REQUEST_URI']) { +if (!isset($_SERVER['REQUEST_URI'])) { $_SERVER['REQUEST_URI'] = $_SERVER['SCRIPT_NAME'] . '?' . $_SERVER['QUERY_STRING']; } diff --git a/auth/cas/CAS/readme_moodle.txt b/auth/cas/CAS/readme_moodle.txt new file mode 100644 index 0000000000000..91a4956ccfc63 --- /dev/null +++ b/auth/cas/CAS/readme_moodle.txt @@ -0,0 +1,8 @@ +Description of phpCAS 1.1.2 library import into Moodle + +Our changes: + * CAS.php - fix notice of $_SERVER['REQUEST_URI'] not being defined under IIS + (we can remove this change when we upgrade to a phpCAS version that has + https://issues.jasig.org/browse/PHPCAS-81 fixed). + +iarenaza