mirror of
https://github.com/skipperbent/simple-php-router.git
synced 2026-06-17 00:37:52 +00:00
Urldecode is now used on all urls in Uri class (issue: #268)
This commit is contained in:
@@ -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'], '/') . '/';
|
||||
|
||||
Reference in New Issue
Block a user