Skip to content

Commit

Permalink
Fix empty paths for server.php (#41933)
Browse files Browse the repository at this point in the history
  • Loading branch information
driesvints authored Apr 12, 2022
1 parent 75bf702 commit bd3ac84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Illuminate/Foundation/resources/server.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
$publicPath = getcwd();

$uri = urldecode(
parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH)
parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH) ?? ''
);

// This file allows us to emulate Apache's "mod_rewrite" functionality from the
Expand Down

0 comments on commit bd3ac84

Please sign in to comment.