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
|
// 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();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue