Skip to content

Commit 9059da0

Browse files
committed
Fix the second half of adamlaska#185 : remember to convert "0" to an int before
testing its truthiness. - Legacy-Id: 799
1 parent dec8f8e commit 9059da0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ietf/redirects/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def redirect(request, path="", script=""):
2727
if request.REQUEST.has_key(fc[0]):
2828
remove_args.append(fc[0])
2929
num = re.match('(\d+)', request.REQUEST[fc[0]])
30-
if num and num.group(1):
30+
if num and int(num.group(1)):
3131
cmd = flag
3232
break
3333
#

0 commit comments

Comments
 (0)