Upgrade to 3.6.3.1

This commit is contained in:
Bastian Allgeier
2022-03-24 11:02:36 +01:00
parent f732a03566
commit 905981da5a
4 changed files with 14 additions and 7 deletions

View File

@@ -268,7 +268,14 @@ class Server
public static function requestUri(): array
{
$uri = static::get('REQUEST_URI', '');
$uri = parse_url($uri);
if (Url::isAbsolute($uri) === true) {
$uri = parse_url($uri);
} else {
// the fake domain is needed to make sure the URL parsing is
// always correct. Even if there's a colon in the path for params
$uri = parse_url('http://getkirby.com' . $uri);
}
return [
'path' => $uri['path'] ?? null,