Skip to content

Commit 5c34ebc

Browse files
committed
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
1 parent da5fc6e commit 5c34ebc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/SimpleSAML/Auth/Simple.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ public function login(array $params = array()) {
104104
$returnTo = SimpleSAML_Utilities::selfURL();
105105
}
106106

107-
if ($keepPost && $_SERVER['REQUEST_METHOD'] === 'POST') {
107+
if (is_string($returnTo) && $keepPost && $_SERVER['REQUEST_METHOD'] === 'POST') {
108108
$returnTo = SimpleSAML_Utilities::createPostRedirectLink($returnTo, $_POST);
109109
}
110110

0 commit comments

Comments
 (0)