Permalink
Browse files

MDL-35153 shibboleth: check for WAYFless URLs

  • Loading branch information...
1 parent 935c3d5 commit 39323c753d753dc873fb362be5931eaea1152231 @mackensen mackensen committed Aug 30, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 auth/shibboleth/index.php
@@ -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

0 comments on commit 39323c7

Please sign in to comment.