summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJaime Perez Crespo <jaime.perez@uninett.no>2016-06-08 10:21:56 +0200
committerJaime Perez Crespo <jaime.perez@uninett.no>2016-06-08 10:21:56 +0200
commita2b47a0a61d7311bf690833330e665b584cc01a5 (patch)
treee1d73037b308013379d1e5c4e54da05bb7be6e02 /lib
parent636aa66eb2384ce98c17aeb27d258dfd6958f7a9 (diff)
downloadsimplesamlphp-a2b47a0a61d7311bf690833330e665b584cc01a5.zip
simplesamlphp-a2b47a0a61d7311bf690833330e665b584cc01a5.tar.gz
simplesamlphp-a2b47a0a61d7311bf690833330e665b584cc01a5.tar.bz2
Fix build. There was a bug in SimpleSAML\Utils\HTTP::parseQueryString() that was producing an empty parameter with an empty value when the query string was empty.
Diffstat (limited to 'lib')
-rw-r--r--lib/SimpleSAML/Utils/HTTP.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/SimpleSAML/Utils/HTTP.php b/lib/SimpleSAML/Utils/HTTP.php
index 186ee6e..068a8a6 100644
--- a/lib/SimpleSAML/Utils/HTTP.php
+++ b/lib/SimpleSAML/Utils/HTTP.php
@@ -830,6 +830,10 @@ class HTTP
}
$res = array();
+ if (empty($query_string)) {
+ return $res;
+ }
+
foreach (explode('&', $query_string) as $param) {
$param = explode('=', $param);
$name = urldecode($param[0]);