summaryrefslogtreecommitdiff
path: root/searx/webadapter.py
diff options
context:
space:
mode:
Diffstat (limited to 'searx/webadapter.py')
-rw-r--r--searx/webadapter.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/searx/webadapter.py b/searx/webadapter.py
index 9fbb8ea3e..967ed4429 100644
--- a/searx/webadapter.py
+++ b/searx/webadapter.py
@@ -45,7 +45,7 @@ def validate_engineref_list(
def parse_pageno(form: Dict[str, str]) -> int:
pageno_param = form.get('pageno', '1')
- if not pageno_param.isdigit() or int(pageno_param) < 1:
+ if not pageno_param.isdigit() or int(pageno_param) < 1 or int(pageno_param) > 50:
raise SearxParameterException('pageno', pageno_param)
return int(pageno_param)