Skip to content
Browse files

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;
  • Loading branch information...
1 parent b4e56c9 commit d241a06a655c30aabf051e38ae9609f6a838f25e @bar bar committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Cake/Network/CakeRequest.php
View
2 lib/Cake/Network/CakeRequest.php
@@ -207,7 +207,7 @@ protected function _processGet() {
$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);

0 comments on commit d241a06

Please sign in to comment.
Something went wrong with that request. Please try again.