Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 515ba5f

Browse files
committed
Minor patch for an Issue #1252
1 parent ec87d8e commit 515ba5f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tamper/greatest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def tamper(payload, **kwargs):
3636
retVal = payload
3737

3838
if payload:
39-
match = re.search(r"(?i)(\b(AND|OR)\b\s+)(?!.*\b(AND|OR)\b)([^>]+?)\s*>\s*([^>]+)\s*\Z", payload)
39+
match = re.search(r"(?i)(\b(AND|OR)\b\s+)(?!.*\b(AND|OR)\b)([^>]+?)\s*>\s*([^>#-]+)", payload)
4040

4141
if match:
4242
_ = "%sGREATEST(%s,%s+1)=%s" % (match.group(1), match.group(4), match.group(5), match.group(4))

0 commit comments

Comments
 (0)