mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 08:26:37 +02:00
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 )
This commit is contained in:
parent
9d97f08e99
commit
b44ff4e45b
2 changed files with 9 additions and 1 deletions
|
@ -32,7 +32,7 @@
|
||||||
//
|
//
|
||||||
// hack by Vangelis Haniotakis to handle the absence of $_SERVER['REQUEST_URI'] in IIS
|
// 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'];
|
$_SERVER['REQUEST_URI'] = $_SERVER['SCRIPT_NAME'] . '?' . $_SERVER['QUERY_STRING'];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
8
auth/cas/CAS/readme_moodle.txt
Normal file
8
auth/cas/CAS/readme_moodle.txt
Normal file
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue