urldecode $this->url before unsetting it from CakeRequest->query

This commit is contained in:
teddy 2012-02-18 12:35:52 +02:00 committed by mark_story
parent e6905b44c3
commit 0ea00c5f07

View file

@ -184,7 +184,7 @@ class CakeRequest implements ArrayAccess {
$query = $_GET;
}
unset($query['/' . str_replace('.', '_', $this->url)]);
unset($query['/' . str_replace('.', '_', urldecode($this->url))]);
if (strpos($this->url, '?') !== false) {
list(, $querystr) = explode('?', $this->url);
parse_str($querystr, $queryArgs);