Permalink
Browse files

Merge pull request #240 from maffelux/limit-count-param

Stops a potential DoS by limiting maximum count to
  • Loading branch information...
dermoth committed Nov 18, 2017
2 parents 283ab79 + 440c5f3 commit 74c5b4ccf1ca56f5a1b8bed49398785e34b60257
Showing with 2 additions and 0 deletions.
  1. +2 −0 Abe/abe.py
View
@@ -416,6 +416,8 @@ def handle_chain(abe, page):
body += abe.search_form(page)
count = get_int_param(page, 'count') or 20
if count >= 2017:
count = 20
hi = get_int_param(page, 'hi')
orig_hi = hi

0 comments on commit 74c5b4c

Please sign in to comment.