]> git.mxchange.org Git - friendica.git/commitdiff
Use System::httpExit for 403 error in App
authorBenjamin Lorteau <benjamin.lorteau@cbsinteractive.com>
Mon, 22 Oct 2018 19:16:59 +0000 (15:16 -0400)
committerBenjamin Lorteau <benjamin.lorteau@cbsinteractive.com>
Mon, 22 Oct 2018 19:16:59 +0000 (15:16 -0400)
src/App.php

index cd1386e590d067d17c732ba731d9a9eb43d05d1a..bde99bfd28f4d480a6f08d895ccf29372ae955db 100644 (file)
@@ -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']);
                                }
                        }
                }