Add URL decoding to query string in App\Arguments
- Slashes were stored url encoded
This commit is contained in:
parent
26b5de9a76
commit
dca1b8b580
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue