Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Try to catch bad operations.
James Coleb6e8144fe921
diff --git a/public/index.php b/public/index.phpindex 57d56e1064..c95ad005e2 100644--- a/public/index.php+++ b/public/index.php@@ -26,6 +26,8 @@* @author Taylor Otwell <[email protected]>*/+use Symfony\Component\HttpFoundation\Exception\SuspiciousOperationException;+define('LARAVEL_START', microtime(true));/*@@ -72,9 +74,14 @@ $app = require_once __DIR__ . '/../bootstrap/app.php';$kernel = $app->make(Illuminate\Contracts\Http\Kernel::class);-$response = $kernel->handle(- $request = Illuminate\Http\Request::capture()-);+try {+ $response = $kernel->handle(+ $request = Illuminate\Http\Request::capture()+ );+} catch(SuspiciousOperationException $e) {+ die('Cannot handle this situation.');++}$response->send();$kernel->terminate($request, $response);