diff options
author | Jaime Perez Crespo <jaime.perez@uninett.no> | 2016-06-08 10:21:56 +0200 |
---|---|---|
committer | Jaime Perez Crespo <jaime.perez@uninett.no> | 2016-06-08 10:21:56 +0200 |
commit | a2b47a0a61d7311bf690833330e665b584cc01a5 (patch) | |
tree | e1d73037b308013379d1e5c4e54da05bb7be6e02 /lib | |
parent | 636aa66eb2384ce98c17aeb27d258dfd6958f7a9 (diff) | |
download | simplesamlphp-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.php | 4 |
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]); |