Skip to content

Commit 9d8ef7d

Browse files
committed
Fix adamlaska#178: handle non-numeric values for flag variables
- Legacy-Id: 756
1 parent b3023b8 commit 9d8ef7d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

ietf/redirects/views.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ def redirect(request, path="", script=""):
2626
continue
2727
if request.REQUEST.has_key(fc[0]):
2828
remove_args.append(fc[0])
29-
if int(request.REQUEST[fc[0]]):
29+
num = re.match('(\d+)', request.REQUEST[fc[0]])
30+
if num and num.group(1):
3031
cmd = flag
3132
break
3233
#

0 commit comments

Comments
 (0)