diff --git a/lib/core/agent.py b/lib/core/agent.py index 69922b05d..fe48c4e0a 100644 --- a/lib/core/agent.py +++ b/lib/core/agent.py @@ -627,7 +627,7 @@ class Agent: regObj = getCompiledRegex("(?P%s.*?%s)" % (PAYLOAD_DELIMITER, PAYLOAD_DELIMITER)) for match in regObj.finditer(inpStr): - retVal = retVal.replace(match.group("result"), urlencode(match.group("result")[1:-1])) + retVal = retVal.replace(match.group("result"), urlencode(match.group("result")[1:-1], convall=True)) else: retVal = retVal.replace(PAYLOAD_DELIMITER, '')