From a2b47a0a61d7311bf690833330e665b584cc01a5 Mon Sep 17 00:00:00 2001
From: Jaime Perez Crespo <jaime.perez@uninett.no>
Date: Wed, 8 Jun 2016 10:21:56 +0200
Subject: [PATCH] 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.

---
 lib/SimpleSAML/Utils/HTTP.php | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/lib/SimpleSAML/Utils/HTTP.php b/lib/SimpleSAML/Utils/HTTP.php
index 186ee6ed1..068a8a66e 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]);
-- 
GitLab