From 37e0530881db1f33c61d922e46f0f9d77a95ef4c Mon Sep 17 00:00:00 2001 From: Alex Tselegidis Date: Fri, 10 Jan 2025 20:26:16 +0200 Subject: [PATCH] Fallback value for the SCRIPT_NAME prop --- application/config/config.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/config/config.php b/application/config/config.php index 8a41a6d5ad..dc0c22f912 100644 --- a/application/config/config.php +++ b/application/config/config.php @@ -24,7 +24,7 @@ $domain = $_SERVER['HTTP_HOST'] ?? 'localhost'; -$request_uri = dirname($_SERVER['SCRIPT_NAME']); +$request_uri = dirname($_SERVER['SCRIPT_NAME'] ?? 'index.php'); if ($request_uri === '.') { $request_uri = '';