Use System::httpExit for 403 error in App

2022.09-rc
Benjamin Lorteau 2018-10-22 15:16:59 -04:00
rodzic a0bd96d587
commit 37f00b5fd1
1 zmienionych plików z 1 dodań i 3 usunięć

Wyświetl plik

@ -1714,9 +1714,7 @@ class App
// Someone came with an invalid parameter, maybe as a DDoS attempt
// We simply stop processing here
logger("Invalid ZRL parameter " . $_GET['zrl'], LOGGER_DEBUG);
header('HTTP/1.1 403 Forbidden');
echo "<h1>403 Forbidden</h1>";
exit();
Core\System::httpExit(403, ['title' => '403 Forbidden']);
}
}
}