Fix query string parsing border case in Util\Proxy
This commit is contained in:
parent
6a57574091
commit
c0e728e7e5
1 changed files with 1 additions and 9 deletions
|
@ -180,16 +180,8 @@ class Proxy
|
||||||
{
|
{
|
||||||
$query = parse_url($url, PHP_URL_QUERY);
|
$query = parse_url($url, PHP_URL_QUERY);
|
||||||
$query = html_entity_decode($query);
|
$query = html_entity_decode($query);
|
||||||
$query_list = explode('&', $query);
|
|
||||||
|
|
||||||
$arr = [];
|
parse_str($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);
|
|
||||||
|
|
||||||
return $arr;
|
return $arr;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue