Reverted to r2206

This commit is contained in:
Bernardo Damele 2010-10-31 11:22:14 +00:00
parent 3869ccebe8
commit 79c3a5e527

View File

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