mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Correctly remove routing url from query string.
It mostly happens when in nxing setups, because of location defined like: try_files $uri $uri/ /app/webroot/index.php?$uri&$args;
This commit is contained in:
parent
b4e56c9989
commit
d241a06a65
1 changed files with 1 additions and 1 deletions
|
@ -207,7 +207,7 @@ class CakeRequest implements ArrayAccess {
|
|||
$query = $_GET;
|
||||
}
|
||||
|
||||
unset($query['/' . str_replace('.', '_', urldecode($this->url))]);
|
||||
unset($query[$this->base . '/' . str_replace('.', '_', urldecode($this->url))]);
|
||||
if (strpos($this->url, '?') !== false) {
|
||||
list(, $querystr) = explode('?', $this->url);
|
||||
parse_str($querystr, $queryArgs);
|
||||
|
|
Loading…
Reference in a new issue