mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 16:32:18 +02:00
MDL-35153 shibboleth: check for WAYFless URLs
This commit is contained in:
parent
935c3d5ed2
commit
39323c753d
@ -6,6 +6,9 @@
|
||||
|
||||
$PAGE->set_url('/auth/shibboleth/index.php');
|
||||
|
||||
// Support for WAYFless URLs.
|
||||
$SESSION->wantsurl = optional_param('target', $SESSION->wantsurl, PARAM_LOCALURL);
|
||||
|
||||
if (isloggedin() && !isguestuser()) { // Nothing to do
|
||||
if (isset($SESSION->wantsurl) and (strpos($SESSION->wantsurl, $CFG->wwwroot) === 0)) {
|
||||
$urltogo = $SESSION->wantsurl; /// Because it's an address in this site
|
||||
|
Loading…
x
Reference in New Issue
Block a user