summaryrefslogtreecommitdiffstats
path: root/modules/exampleauth/lib/Auth
diff options
context:
space:
mode:
authorJaime Pérez Crespo <jaime.perez@uninett.no>2014-01-28 00:24:41 +0000
committerJaime Pérez Crespo <jaime.perez@uninett.no>2014-01-28 00:24:41 +0000
commit26ecd93413b6c8fb8a2642f882ad91d83b77c8f0 (patch)
tree7f143c64e4b49f310e770527b57ee0ea2c69ca59 /modules/exampleauth/lib/Auth
parentdf62f4656f4b8da04ede0b1486716f23236168ff (diff)
downloadsimplesamlphp-26ecd93413b6c8fb8a2642f882ad91d83b77c8f0.zip
simplesamlphp-26ecd93413b6c8fb8a2642f882ad91d83b77c8f0.tar.gz
simplesamlphp-26ecd93413b6c8fb8a2642f882ad91d83b77c8f0.tar.bz2
Fix for bug introduced in r3332.
git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@3336 44740490-163a-0410-bde0-09ae8108e29a
Diffstat (limited to 'modules/exampleauth/lib/Auth')
-rw-r--r--modules/exampleauth/lib/Auth/Source/External.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/exampleauth/lib/Auth/Source/External.php b/modules/exampleauth/lib/Auth/Source/External.php
index 53818e9..256a3de 100644
--- a/modules/exampleauth/lib/Auth/Source/External.php
+++ b/modules/exampleauth/lib/Auth/Source/External.php
@@ -187,9 +187,9 @@ class sspmod_exampleauth_Auth_Source_External extends SimpleSAML_Auth_Source {
$stateId = (string)$_REQUEST['State'];
// sanitize the input
- $restartURL = SimpleSAML_Utilities::getURLFromStateID($stateId);
- if (!is_null($restartURL)) {
- SimpleSAML_Utilities::checkURLAllowed($restartURL);
+ $sid = SimpleSAML_Utilities::parseStateID($stateId);
+ if (!is_null($sid['url'])) {
+ SimpleSAML_Utilities::checkURLAllowed($sid['url']);
}
/*