From fdd607585970064d07ba3dc71ab1965f1bfb5a72 Mon Sep 17 00:00:00 2001 From: Bernardo Damele Date: Sun, 13 Jan 2013 23:08:23 +0000 Subject: [PATCH] temporary patch to fix UNION query enumeration --- lib/core/agent.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/core/agent.py b/lib/core/agent.py index 137abeb5b..2bbf345ba 100644 --- a/lib/core/agent.py +++ b/lib/core/agent.py @@ -130,7 +130,7 @@ class Agent(object): retVal = paramString.replace(origValue, self.addPayloadDelimiters(newValue)) else: retVal = paramString.replace("%s=%s" % (parameter, origValue), - "%s=%s" % (parameter, self.addPayloadDelimiters(newValue))) + "%s=%s" % (parameter, self.addPayloadDelimiters(newValue))) return retVal @@ -391,7 +391,7 @@ class Agent(object): elif depth == 0 and char == ',': commas.append(index) commas = sorted(commas) - fieldsSplitted = [fields[x:y] for (x, y) in zip(commas, commas[1:])] + fieldsSplitted = [fields[x:y].strip(",") for (x, y) in zip(commas, commas[1:])] dbmsDelimiter = queries[Backend.getIdentifiedDbms()].delimiter.query nulledCastedFields = []