mirror of
https://github.com/friendica/friendica
synced 2024-11-19 00:23:47 +00:00
Use System::httpExit for 403 error in App
This commit is contained in:
parent
a0bd96d587
commit
37f00b5fd1
1 changed files with 1 additions and 3 deletions
|
@ -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']);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue