diff options
Diffstat (limited to 'modules/authmyspace/www/linkback.php')
-rw-r--r-- | modules/authmyspace/www/linkback.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/authmyspace/www/linkback.php b/modules/authmyspace/www/linkback.php index 81683c8..4dbaf79 100644 --- a/modules/authmyspace/www/linkback.php +++ b/modules/authmyspace/www/linkback.php @@ -11,9 +11,9 @@ if (array_key_exists('stateid', $_REQUEST)) { } // 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']); } $state = SimpleSAML_Auth_State::loadState($stateId, sspmod_authmyspace_Auth_Source_MySpace::STAGE_INIT); |