From 2fb059a644c2817e3e22195589d986d779377eba Mon Sep 17 00:00:00 2001 From: Bernardo Damele Date: Sun, 31 Oct 2010 12:02:20 +0000 Subject: [PATCH] Bug fix --- lib/core/agent.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/core/agent.py b/lib/core/agent.py index 0e8b5310a..00a563b1e 100644 --- a/lib/core/agent.py +++ b/lib/core/agent.py @@ -658,7 +658,7 @@ class Agent: if inpStr: regObj = getCompiledRegex("%s(.*?)%s" % (PAYLOAD_DELIMITER, PAYLOAD_DELIMITER)) - retVal = regObj.sub(payload, inpStr) + retVal = regObj.sub("%s%s%s" % (PAYLOAD_DELIMITER, payload, PAYLOAD_DELIMITER), inpStr) return retVal