From: Hypolite Petovan Date: Sun, 5 Aug 2018 13:57:04 +0000 (+0200) Subject: Fix query string parsing border case in Util\Proxy X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=c0e728e7e5d12c3c54a8c140e004992660701244;p=friendica.git Fix query string parsing border case in Util\Proxy --- diff --git a/src/Util/Proxy.php b/src/Util/Proxy.php index bb26185f46..3473e8d167 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; }