From 2825ab5e4e1e1b2abfcd2eeae09fd2332e0183d7 Mon Sep 17 00:00:00 2001 From: Bernardo Damele Date: Sat, 16 Jan 2010 21:56:40 +0000 Subject: [PATCH] Major bug fix in url-encoding --- lib/core/agent.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/core/agent.py b/lib/core/agent.py index 5a7dda93d..61661d004 100644 --- a/lib/core/agent.py +++ b/lib/core/agent.py @@ -26,6 +26,7 @@ import re from lib.core.common import randomInt from lib.core.common import randomStr +from lib.core.convert import urlencode from lib.core.data import conf from lib.core.data import kb from lib.core.data import queries @@ -52,6 +53,7 @@ class Agent: falseValue = "" negValue = "" retValue = "" + newValue = urlencode(newValue) if negative or conf.paramNegative: negValue = "-" @@ -77,7 +79,7 @@ class Agent: paramString = conf.parameters[place] retValue = paramString.replace("%s=%s" % (parameter, value), "%s=%s" % (parameter, newValue)) - + return retValue def fullPayload(self, query):