Fix #178: handle non-numeric values for flag variables
- Legacy-Id: 756
This commit is contained in:
parent
b3023b8dee
commit
9d8ef7d962
|
@ -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
|
||||
#
|
||||
|
|
Loading…
Reference in a new issue