1
0
Fork 0

Add URL decoding to query string in App\Arguments

- Slashes were stored url encoded
This commit is contained in:
Hypolite Petovan 2019-10-27 09:47:19 -04:00
parent 26b5de9a76
commit dca1b8b580

View file

@ -105,9 +105,9 @@ class Arguments
$queryString = '';
if (!empty($server['QUERY_STRING']) && strpos($server['QUERY_STRING'], 'pagename=') === 0) {
$queryString = substr($server['QUERY_STRING'], 9);
$queryString = urldecode(substr($server['QUERY_STRING'], 9));
} elseif (!empty($server['QUERY_STRING']) && strpos($server['QUERY_STRING'], 'q=') === 0) {
$queryString = substr($server['QUERY_STRING'], 2);
$queryString = urldecode(substr($server['QUERY_STRING'], 2));
}
// eventually strip ZRL