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

Utilities::addURLParameter: Fix assertion failure on URL ending with '?'.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@798 44740490-163a-0410-bde0-09ae8108e29a
parent 6c33fa50
No related branches found
No related tags found
No related merge requests found
......@@ -166,7 +166,12 @@ class SimpleSAML_Utilities {
$oldQuery = array();
$url .= '?';
} else {
$oldQuery = self::parseQueryString(substr($url, $queryStart + 1));
$oldQuery = substr($url, $queryStart + 1);
if($oldQuery === FALSE) {
$oldQuery = array();
} else {
$oldQuery = self::parseQueryString($oldQuery);
}
$url = substr($url, 0, $queryStart + 1);
}
......
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