From 37f00b5fd11c364c1563c2712718059c63da520f Mon Sep 17 00:00:00 2001 From: Benjamin Lorteau Date: Mon, 22 Oct 2018 15:16:59 -0400 Subject: [PATCH] Use System::httpExit for 403 error in App --- src/App.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/App.php b/src/App.php index cd1386e590..bde99bfd28 100644 --- a/src/App.php +++ b/src/App.php @@ -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 "

403 Forbidden

"; - exit(); + Core\System::httpExit(403, ['title' => '403 Forbidden']); } } }