Minor patch for an Issue #1252

This commit is contained in:
Miroslav Stampar 2015-06-01 11:13:02 +02:00
parent ec87d8ebda
commit 515ba5fb31

View File

@ -36,7 +36,7 @@ def tamper(payload, **kwargs):
retVal = payload retVal = payload
if payload: if payload:
match = re.search(r"(?i)(\b(AND|OR)\b\s+)(?!.*\b(AND|OR)\b)([^>]+?)\s*>\s*([^>]+)\s*\Z", payload) match = re.search(r"(?i)(\b(AND|OR)\b\s+)(?!.*\b(AND|OR)\b)([^>]+?)\s*>\s*([^>#-]+)", payload)
if match: if match:
_ = "%sGREATEST(%s,%s+1)=%s" % (match.group(1), match.group(4), match.group(5), match.group(4)) _ = "%sGREATEST(%s,%s+1)=%s" % (match.group(1), match.group(4), match.group(5), match.group(4))