From f09afcdd28ed657d9733f7351dc92fa279ba9e20 Mon Sep 17 00:00:00 2001 From: Charles Fulton Date: Wed, 4 Sep 2013 11:12:52 -0700 Subject: [PATCH] MDL-41598 auth_shibboleth: don't override wantsurl --- auth/shibboleth/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/auth/shibboleth/index.php b/auth/shibboleth/index.php index 525675084db..05e60392401 100644 --- a/auth/shibboleth/index.php +++ b/auth/shibboleth/index.php @@ -8,7 +8,7 @@ // Support for WAYFless URLs. $target = optional_param('target', '', PARAM_LOCALURL); - if (!empty($target)) { + if (!empty($target) && empty($SESSION->wantsurl)) { $SESSION->wantsurl = $target; }