Fix #178: handle non-numeric values for flag variables

- Legacy-Id: 756
This commit is contained in:
Bill Fenner 2007-06-29 11:55:22 +00:00
parent b3023b8dee
commit 9d8ef7d962

View file

@ -26,7 +26,8 @@ def redirect(request, path="", script=""):
continue
if request.REQUEST.has_key(fc[0]):
remove_args.append(fc[0])
if int(request.REQUEST[fc[0]]):
num = re.match('(\d+)', request.REQUEST[fc[0]])
if num and num.group(1):
cmd = flag
break
#