Added protection against fatal errors for AJAX
This commit is contained in:
parent
c83c609b51
commit
0889472bf3
1 changed files with 3 additions and 0 deletions
|
@ -1,6 +1,9 @@
|
|||
<?php
|
||||
namespace Szurubooru;
|
||||
|
||||
//if script fails prematurely, mark it as fail from advance
|
||||
http_response_code(500);
|
||||
|
||||
final class Dispatcher
|
||||
{
|
||||
private $router;
|
||||
|
|
Loading…
Reference in a new issue