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: if value:
retVal = "" retVal = ""
quote, doublequote, firstspace = False, False, False quote, doublequote = False, False
for i in xrange(len(value)): for i in xrange(len(value)):
if not firstspace: if value[i].isspace():
retVal += " "
if value[i].isspace(): continue
firstspace = True
retVal += " "
continue
elif value[i] == '\'': elif value[i] == '\'':
quote = not quote quote = not quote