From 0ea00c5f07f17ea8c6bbce81a52116c06d053089 Mon Sep 17 00:00:00 2001 From: teddy Date: Sat, 18 Feb 2012 12:35:52 +0200 Subject: [PATCH] urldecode $this->url before unsetting it from CakeRequest->query --- lib/Cake/Network/CakeRequest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Cake/Network/CakeRequest.php b/lib/Cake/Network/CakeRequest.php index 2b3e7ed75..f05319f87 100644 --- a/lib/Cake/Network/CakeRequest.php +++ b/lib/Cake/Network/CakeRequest.php @@ -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);