Browse Source

Use System::httpExit for 403 error in App

pull/5987/head
Benjamin Lorteau 3 years ago
parent
commit
37f00b5fd1
1 changed files with 1 additions and 3 deletions
  1. +1
    -3
      src/App.php

+ 1
- 3
src/App.php View 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']);
}
}
}


Loading…
Cancel
Save