Upgrade to 3.6.1
This commit is contained in:
@@ -144,10 +144,10 @@ class Uri
|
||||
|
||||
// parse the path and extract params
|
||||
if (empty($props['path']) === false) {
|
||||
$extract = Params::extract($props['path']);
|
||||
$props['params'] = $props['params'] ?? $extract['params'];
|
||||
$props['path'] = $extract['path'];
|
||||
$props['slash'] = $props['slash'] ?? $extract['slash'];
|
||||
$extract = Params::extract($props['path']);
|
||||
$props['params'] ??= $extract['params'];
|
||||
$props['path'] = $extract['path'];
|
||||
$props['slash'] ??= $extract['slash'];
|
||||
}
|
||||
|
||||
$this->setProperties($this->props = $props);
|
||||
@@ -246,8 +246,12 @@ class Uri
|
||||
return static::$current;
|
||||
}
|
||||
|
||||
$uri = Server::get('REQUEST_URI');
|
||||
$uri = preg_replace('!^(http|https)\:\/\/' . Server::get('HTTP_HOST') . '!', '', $uri);
|
||||
$uri = Server::get('REQUEST_URI') ?? '';
|
||||
$uri = preg_replace(
|
||||
'!^(http|https)\:\/\/' . Server::get('HTTP_HOST') . '!',
|
||||
'',
|
||||
$uri
|
||||
);
|
||||
$uri = parse_url('http://getkirby.com' . $uri);
|
||||
|
||||
$url = new static(array_merge([
|
||||
|
||||
Reference in New Issue
Block a user