Add 404 response code on erroneous IDs in index.php
This commit is contained in:
parent
648e777209
commit
74c66f3f96
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user