From d799ee3da63578c33bbdc74b6909e3924a6c80b4 Mon Sep 17 00:00:00 2001 From: Christian Weiske Date: Tue, 8 Jan 2019 20:38:47 +0100 Subject: [PATCH 1/1] Do not throw exception but send 400 --- www/index.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/www/index.php b/www/index.php index 7c4904b..c1acfdf 100644 --- a/www/index.php +++ b/www/index.php @@ -19,7 +19,9 @@ if (isset($_GET['page'])) { if ($page >= 100) { //Elasticsearch by default only allows 100 pages // we do not want exceptions in our logs - throw new Exception_Input('List page is too large'); + header('HTTP/1.0 400 Bad Request'); + echo "List page number is too large\n"; + exit(1); } } -- 2.30.2