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

SimpleSAML_Auth_Simple: Add assert() check to getLoginURL().

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@1860 44740490-163a-0410-bde0-09ae8108e29a
parent 3689b948
No related branches found
No related tags found
No related merge requests found
......@@ -148,6 +148,7 @@ class SimpleSAML_Auth_Simple {
* An URL which is suitable for use in link-elements.
*/
public function getLoginURL($returnTo = NULL) {
assert('is_null($returnTo) || is_string($returnTo)');
if ($returnTo === NULL) {
$returnTo = SimpleSAML_Utilities::selfURL();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment