From 515ba5fb314476fa216df66f17f9316ef2b570ea Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Mon, 1 Jun 2015 11:13:02 +0200 Subject: [PATCH] Minor patch for an Issue #1252 --- tamper/greatest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tamper/greatest.py b/tamper/greatest.py index cf4688361..a1c3f8df3 100644 --- a/tamper/greatest.py +++ b/tamper/greatest.py @@ -36,7 +36,7 @@ def tamper(payload, **kwargs): retVal = 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: _ = "%sGREATEST(%s,%s+1)=%s" % (match.group(1), match.group(4), match.group(5), match.group(4))