From 08d74df6e39081cca28cbd1e1430b53a574aa4b9 Mon Sep 17 00:00:00 2001 From: Andy Miller Date: Fri, 24 Jan 2025 15:23:06 -0700 Subject: [PATCH] Fix parse error: #3894 Signed-off-by: Andy Miller --- system/src/Grav/Common/Uri.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/src/Grav/Common/Uri.php b/system/src/Grav/Common/Uri.php index 994ab0174..ccf6118c3 100644 --- a/system/src/Grav/Common/Uri.php +++ b/system/src/Grav/Common/Uri.php @@ -1268,7 +1268,7 @@ class Uri } // Build path. - $request_uri = $env['REQUEST_URI'] ?? ''; + $request_uri = $env['REQUEST_URI'] ?? '/'; $this->path = rawurldecode(parse_url('http://example.com' . $request_uri, PHP_URL_PATH)); // Build query string.