mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 12:40:01 +01:00
When looking for me() try $_SERVER['URL'] (IIS uses it)
This commit is contained in:
parent
fbfd530bf2
commit
16c4d82a50
@ -105,8 +105,14 @@ function me() {
|
||||
}
|
||||
return $_SERVER["SCRIPT_NAME"];
|
||||
|
||||
} else if (!empty($_SERVER["URL"])) { // May help IIS (not well tested)
|
||||
if (!empty($_SERVER["QUERY_STRING"])) {
|
||||
return $_SERVER["URL"]."?".$_SERVER["QUERY_STRING"];
|
||||
}
|
||||
return $_SERVER["URL"];
|
||||
|
||||
} else {
|
||||
notify("Warning: Could not find any of these web server variables: \$REQUEST_URI, \$PHP_SELF or \$SCRIPT_NAME");
|
||||
notify("Warning: Could not find any of these web server variables: \$REQUEST_URI, \$PHP_SELF, \$SCRIPT_NAME or \$URL");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user