From 5ba36f89dfb9b6abe33e734449e55f87c57effa2 Mon Sep 17 00:00:00 2001 From: Bernardo Damele Date: Fri, 29 Oct 2010 23:03:02 +0000 Subject: [PATCH] Fixed MySQL BETWEEN tamper script --- tamper/between.py | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/tamper/between.py b/tamper/between.py index 7d70f8fda..badef3193 100644 --- a/tamper/between.py +++ b/tamper/between.py @@ -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