summaryrefslogtreecommitdiffstats
path: root/modules/InfoCard/lib/Auth/Source/ICAuth.php
diff options
context:
space:
mode:
Diffstat (limited to 'modules/InfoCard/lib/Auth/Source/ICAuth.php')
-rw-r--r--modules/InfoCard/lib/Auth/Source/ICAuth.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/InfoCard/lib/Auth/Source/ICAuth.php b/modules/InfoCard/lib/Auth/Source/ICAuth.php
index 0b76ed1..bfefdab 100644
--- a/modules/InfoCard/lib/Auth/Source/ICAuth.php
+++ b/modules/InfoCard/lib/Auth/Source/ICAuth.php
@@ -69,9 +69,9 @@ class sspmod_InfoCard_Auth_Source_ICAuth extends SimpleSAML_Auth_Source {
}
// sanitize the input
- $restartURL = SimpleSAML_Utilities::getURLFromStateID($authStateId);
- if (!is_null($restartURL)) {
- SimpleSAML_Utilities::checkURLAllowed($restartURL);
+ $sid = SimpleSAML_Utilities::parseStateID($authStateId);
+ if (!is_null($sid['url'])) {
+ SimpleSAML_Utilities::checkURLAllowed($sid['url']);
}
/* Retrieve the authentication state. */