Skip to content

Commit

Permalink
Fix parse error: #3894
Browse files Browse the repository at this point in the history
Signed-off-by: Andy Miller <[email protected]>
  • Loading branch information
rhukster committed Jan 24, 2025
1 parent 2620e83 commit 08d74df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion system/src/Grav/Common/Uri.php
Original file line number Diff line number Diff line change
Expand Up @@ -1268,7 +1268,7 @@ protected function createFromEnvironment(array $env)
}

// 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.
Expand Down

0 comments on commit 08d74df

Please sign in to comment.