git.cweiske.de
/
phinde.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
ea7a3af
)
Do not throw exception but send 400
author
Christian Weiske
<cweiske@cweiske.de>
Tue, 8 Jan 2019 19:38:47 +0000
(20:38 +0100)
committer
Christian Weiske
<cweiske@cweiske.de>
Tue, 8 Jan 2019 19:38:47 +0000
(20:38 +0100)
www/index.php
patch
|
blob
|
history
diff --git
a/www/index.php
b/www/index.php
index 7c4904b4d45a6cac241fd0564d5535df8c213a85..c1acfdf301c99cadbf5ef491e2404f3ec656e8fa 100644
(file)
--- 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
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);
}
}
}
}