Skip to content
Snippets Groups Projects
Commit 14a2e29584cd authored by Arthur Lutz's avatar Arthur Lutz
Browse files

[views] safety belt around page argument handling (if not an int)

parent e6aadade8a9d
No related branches found
No related tags found
No related merge requests found
......@@ -118,8 +118,11 @@
if key == 'children_for':
children_for = value
if key == 'page':
start = (max(int(value) - 1, 0)) * 10
stop = start + 10
try:
start = (max(int(value) - 1, 0)) * 10
stop = start + 10
except ValueError:
pass
search = self.customize_search(query_string,
facet_selections,
start, stop,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment