mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +00:00
urldecode $this->url before unsetting it from CakeRequest->query
This commit is contained in:
parent
e6905b44c3
commit
0ea00c5f07
1 changed files with 1 additions and 1 deletions
|
@ -184,7 +184,7 @@ class CakeRequest implements ArrayAccess {
|
||||||
$query = $_GET;
|
$query = $_GET;
|
||||||
}
|
}
|
||||||
|
|
||||||
unset($query['/' . str_replace('.', '_', $this->url)]);
|
unset($query['/' . str_replace('.', '_', urldecode($this->url))]);
|
||||||
if (strpos($this->url, '?') !== false) {
|
if (strpos($this->url, '?') !== false) {
|
||||||
list(, $querystr) = explode('?', $this->url);
|
list(, $querystr) = explode('?', $this->url);
|
||||||
parse_str($querystr, $queryArgs);
|
parse_str($querystr, $queryArgs);
|
||||||
|
|
Loading…
Add table
Reference in a new issue