aboutsummaryrefslogtreecommitdiff
path: root/web
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2007-11-14 02:51:51 +0000
committerRobin H. Johnson <robbat2@gentoo.org>2007-11-14 02:51:51 +0000
commit1675dcf7916e9b0bb256eab121088593e68a4f8a (patch)
tree227f3dcfbc91bf9f18d06b398cc7d4b261e5f215 /web
parentFix max count. (diff)
downloadpackages-1675dcf7916e9b0bb256eab121088593e68a4f8a.tar.gz
packages-1675dcf7916e9b0bb256eab121088593e68a4f8a.tar.bz2
packages-1675dcf7916e9b0bb256eab121088593e68a4f8a.zip
One parsing safety issue.
Diffstat (limited to 'web')
-rw-r--r--web/lib/query_filter.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/web/lib/query_filter.py b/web/lib/query_filter.py
index fb32fe6..afa6fad 100644
--- a/web/lib/query_filter.py
+++ b/web/lib/query_filter.py
@@ -19,7 +19,10 @@ def sanitize_query_string(qsargs=None):
args_int = ['count', 'left_daycount']
for arg in args_int:
if arg in qsargs:
- newqs[arg] = int(qsargs[arg])
+ try:
+ newqs[arg] = int(qsargs[arg])
+ except ValueError:
+ pass
key = 'arches'
if key in qsargs: