Merge pull request #281 from skipperbent/v3-fix-urldecode

Urldecode is now used on all urls in Uri class (issue: #268)
This commit is contained in:
Simon Sessingø
2017-08-24 16:53:04 +02:00
committed by GitHub
+1 -1
View File
@@ -19,7 +19,7 @@ class Uri
public function __construct($url) public function __construct($url)
{ {
$this->originalUrl = $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'] !== '/') { if (isset($this->data['path']) === true && $this->data['path'] !== '/') {
$this->data['path'] = rtrim($this->data['path'], '/') . '/'; $this->data['path'] = rtrim($this->data['path'], '/') . '/';