Fix for an Issue #768

This commit is contained in:
Miroslav Stampar 2014-07-29 13:26:58 +02:00
parent 9fff88d6e4
commit 6c4c82758d

View File

@ -44,7 +44,7 @@ def tamper(payload, **kwargs):
continue
if found:
_ = re.sub("\s*(AND|OR)[\s(]+'[^']+'\s*(=|LIKE)\s*'.*", "", retVal, flags=re.I)
_ = re.sub("(?i)\s*(AND|OR)[\s(]+'[^']+'\s*(=|LIKE)\s*'.*", "", retVal)
if _ != retVal:
retVal = _
retVal += "-- "