Skip to content
Snippets Groups Projects
Commit 5c34ebca authored by Olav Morken's avatar Olav Morken
Browse files

Auth_Simple: Make sure that we do not return to an URL when a callback is specified.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@2631 44740490-163a-0410-bde0-09ae8108e29a
parent da5fc6ef
No related branches found
No related tags found
No related merge requests found
......@@ -104,7 +104,7 @@ class SimpleSAML_Auth_Simple {
$returnTo = SimpleSAML_Utilities::selfURL();
}
if ($keepPost && $_SERVER['REQUEST_METHOD'] === 'POST') {
if (is_string($returnTo) && $keepPost && $_SERVER['REQUEST_METHOD'] === 'POST') {
$returnTo = SimpleSAML_Utilities::createPostRedirectLink($returnTo, $_POST);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment