Merge pull request #283 from skipperbent/v3

V3
This commit is contained in:
Simon Sessingø
2017-08-24 16:53:29 +02:00
committed by GitHub
+1 -1
View File
@@ -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'], '/') . '/';