Fixed MySQL BETWEEN tamper script

This commit is contained in:
Bernardo Damele 2010-10-29 23:03:02 +00:00
parent 8cf0ebde1e
commit 5ba36f89df

View File

@ -17,15 +17,12 @@ def tamper(value):
if value:
retVal = ""
quote, doublequote, firstspace = False, False, False
quote, doublequote = False, False
for i in xrange(len(value)):
if not firstspace:
if value[i].isspace():
firstspace = True
retVal += " "
continue
if value[i].isspace():
retVal += " "
continue
elif value[i] == '\'':
quote = not quote