Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MDL-38637 CAS Authentication: Undefined index: QUERY_STRING when exec…

…uting cron
  • Loading branch information...
commit d110758759dbce2b5a2f1d172431e7f5475b3ea9 1 parent 7b9df23
Jean-Philippe Gaudreau gaudreaj authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 auth/cas/CAS/CAS.php
5 auth/cas/CAS/CAS.php
View
@@ -32,8 +32,9 @@
//
// hack by Vangelis Haniotakis to handle the absence of $_SERVER['REQUEST_URI'] in IIS
//
-if (!isset($_SERVER['REQUEST_URI'])) {
- $_SERVER['REQUEST_URI'] = $_SERVER['SCRIPT_NAME'] . '?' . $_SERVER['QUERY_STRING'];
+$_SERVER['REQUEST_URI'] = $_SERVER['SCRIPT_NAME'];
+if (isset($_SERVER['QUERY_STRING'])) {
+ $_SERVER['REQUEST_URI'] .= '?' . $_SERVER['QUERY_STRING'];
}
//
Please sign in to comment.
Something went wrong with that request. Please try again.