mirror of
https://github.com/skipperbent/simple-php-router.git
synced 2026-07-11 20:12:14 +00:00
@@ -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'], '/') . '/';
|
||||||
|
|||||||
Reference in New Issue
Block a user