Use System::httpExit for 403 error in App

This commit is contained in:
Benjamin Lorteau 2018-10-22 15:16:59 -04:00
parent a0bd96d587
commit 37f00b5fd1

View file

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