From bd3ac842a4af4d86576234b08371ee54e1920772 Mon Sep 17 00:00:00 2001 From: Dries Vints Date: Tue, 12 Apr 2022 15:38:02 +0200 Subject: [PATCH] Fix empty paths for server.php (#41933) --- src/Illuminate/Foundation/resources/server.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Illuminate/Foundation/resources/server.php b/src/Illuminate/Foundation/resources/server.php index b7fc7e79b236..99eddccc1752 100644 --- a/src/Illuminate/Foundation/resources/server.php +++ b/src/Illuminate/Foundation/resources/server.php @@ -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