From 74c66f3f969158138c458f233ae0ecfaaa0e668f Mon Sep 17 00:00:00 2001 From: Joshua Ramon Enslin Date: Tue, 28 Jun 2022 17:41:00 +0200 Subject: [PATCH] Add 404 response code on erroneous IDs in index.php --- public/index.php | 1 + 1 file changed, 1 insertion(+) diff --git a/public/index.php b/public/index.php index 35648df..ea3850c 100644 --- a/public/index.php +++ b/public/index.php @@ -38,6 +38,7 @@ foreach (MDEventsSet::EVENT_IDS as $j) { $availableLangs = MD_STD::scandir(__DIR__ . "/../l10n/translation-musdb"); if (!empty($_GET['id']) and !($id = filter_var($_GET['id'], FILTER_VALIDATE_INT))) { + http_response_code(404); echo "Error: IDs must be presented in a numeric format."; return; }