Minor bug fix

This commit is contained in:
Bernardo Damele 2010-10-31 12:24:19 +00:00
parent fcada4df0f
commit 617edf7fc2

View File

@ -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