Skip to content

Commit de2af9e

Browse files
committed
Fix empty string causing parse error: fixes #3894
Signed-off-by: Andy Miller <[email protected]>
1 parent edfb1a0 commit de2af9e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

system/src/Grav/Common/Uri.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1266,7 +1266,7 @@ protected function createFromEnvironment(array $env)
12661266
}
12671267

12681268
// Build path.
1269-
$request_uri = $env['REQUEST_URI'] ?? '';
1269+
$request_uri = $env['REQUEST_URI'] ?? '/';
12701270
$this->path = rawurldecode(parse_url('http://example.com' . $request_uri, PHP_URL_PATH));
12711271

12721272
// Build query string.

0 commit comments

Comments
 (0)