Skip to content
Snippets Groups Projects
Commit 19797bae authored by Enrico Cavalli's avatar Enrico Cavalli
Browse files

Corrected logic in checkSessionCookie

Raise InvalidArgumentException if $retryURL is not a string AND is not null
parent 6c841e30
No related branches found
No related tags found
No related merge requests found
......@@ -271,7 +271,7 @@ class HTTP
*/
public static function checkSessionCookie($retryURL = null)
{
if (!is_string($retryURL) || !is_null($retryURL)) {
if (!is_string($retryURL) && !is_null($retryURL)) {
throw new \InvalidArgumentException('Invalid input parameters.');
}
......@@ -1024,4 +1024,4 @@ class HTTP
$p->show();
exit(0);
}
}
\ No newline at end of file
}
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