From 44ddb63d88532f2480ad759d5767adac1276c4a4 Mon Sep 17 00:00:00 2001 From: Alex Tselegidis Date: Mon, 29 Jan 2024 13:16:58 +0100 Subject: [PATCH] Fallback value --- index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.php b/index.php index 1e9210d0..5854ebb5 100644 --- a/index.php +++ b/index.php @@ -82,7 +82,7 @@ require_once __DIR__ . '/vendor/autoload.php'; * */ -if (str_contains($_SERVER['REQUEST_URI'], '.min.js.map')) { +if (str_contains((string) $_SERVER['REQUEST_URI'] ?? '', '.min.js.map')) { http_response_code(404); exit(); }