From c0e728e7e5d12c3c54a8c140e004992660701244 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Sun, 5 Aug 2018 15:57:04 +0200 Subject: [PATCH] Fix query string parsing border case in Util\Proxy --- src/Util/Proxy.php | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/Util/Proxy.php b/src/Util/Proxy.php index bb26185f4..3473e8d16 100644 --- a/src/Util/Proxy.php +++ b/src/Util/Proxy.php @@ -180,16 +180,8 @@ class Proxy { $query = parse_url($url, PHP_URL_QUERY); $query = html_entity_decode($query); - $query_list = explode('&', $query); - $arr = []; - - foreach ($query_list as $key_value) { - $key_value_list = explode('=', $key_value); - $arr[$key_value_list[0]] = $key_value_list[1]; - } - - unset($url, $query_list, $url); + parse_str($query, $arr); return $arr; }