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

Skip to content

Commit e150316

Browse files
committed
Slight update for a greatest.py (more general approach)
1 parent ac6c9a8 commit e150316

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
@@ -37,7 +37,7 @@ def tamper(payload, **kwargs):
3737
retVal = payload
3838

3939
if payload:
40-
match = re.search(r"(?i)(\b(AND|OR)\b\s+)(?!.*\b(AND|OR)\b)([^>]+?)\s*>\s*([\d(+\-*/)]+)\s*\Z", payload)
40+
match = re.search(r"(?i)(\b(AND|OR)\b\s+)(?!.*\b(AND|OR)\b)([^>]+?)\s*>\s*([^>]+)\s*\Z", payload)
4141

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

0 commit comments

Comments
 (0)