From 617edf7fc2cbe773bdc75fac3bfcf0d0938906af Mon Sep 17 00:00:00 2001 From: Bernardo Damele Date: Sun, 31 Oct 2010 12:24:19 +0000 Subject: [PATCH] Minor 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 c7af245ed..0a3c268f8 100644 --- a/lib/core/agent.py +++ b/lib/core/agent.py @@ -655,7 +655,7 @@ class Agent: retVal = inpStr if inpStr: - regObj = getCompiledRegex("%s(.*?)%s" % (PAYLOAD_DELIMITER, PAYLOAD_DELIMITER)) + regObj = getCompiledRegex("(%s.*?%s)" % (PAYLOAD_DELIMITER, PAYLOAD_DELIMITER)) retVal = regObj.sub("%s%s%s" % (PAYLOAD_DELIMITER, payload, PAYLOAD_DELIMITER), inpStr) return retVal