From: Benjamin Lorteau Date: Mon, 22 Oct 2018 19:16:59 +0000 (-0400) Subject: Use System::httpExit for 403 error in App X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=37f00b5fd11c364c1563c2712718059c63da520f;p=friendica.git Use System::httpExit for 403 error in App --- 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']); } } }