From 927ad7bf136dceb515d426d24cde0dd8e99992fc Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Wed, 22 Sep 2010 12:21:21 +0000 Subject: [PATCH] update --- 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 d1ebf46fb..9dae4da50 100644 --- a/lib/core/agent.py +++ b/lib/core/agent.py @@ -67,7 +67,7 @@ class Agent: falseValue = "" negValue = "" retValue = "" - newValue = urlencode(newValue) + newValue = urlencode(newValue) if place != "URI" else newValue if negative or kb.unionNegative: negValue = "-" @@ -100,7 +100,7 @@ class Agent: elif parameter == "User-Agent": retValue = value.replace(value, newValue) elif parameter == "URI": - retValue = value.replace('*', newValue) + retValue = value.replace('*', ' %s ' % newValue.replace(value,'')) else: paramString = conf.parameters[place]