From 6c4c82758d551c32a6e618313ddc07dc39cc2ddc Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Tue, 29 Jul 2014 13:26:58 +0200 Subject: [PATCH] Fix for an Issue #768 --- tamper/unmagicquotes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tamper/unmagicquotes.py b/tamper/unmagicquotes.py index 078c4f5ba..d56136f7f 100644 --- a/tamper/unmagicquotes.py +++ b/tamper/unmagicquotes.py @@ -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 += "-- "