From c82d91375c1dd6302de2d09eb229960518f40fbf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20Sessing=C3=B8?= Date: Thu, 24 Aug 2017 15:49:43 +0100 Subject: [PATCH] Urldecode is now used on all urls in Uri class (issue: #268) --- src/Pecee/Http/Uri.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Pecee/Http/Uri.php b/src/Pecee/Http/Uri.php index 1232219..64a7798 100644 --- a/src/Pecee/Http/Uri.php +++ b/src/Pecee/Http/Uri.php @@ -19,7 +19,7 @@ class Uri public function __construct($url) { $this->originalUrl = $url; - $this->data = array_merge($this->data, $this->parseUrl($url)); + $this->data = array_merge($this->data, $this->parseUrl(urldecode($url))); if (isset($this->data['path']) === true && $this->data['path'] !== '/') { $this->data['path'] = rtrim($this->data['path'], '/') . '/';