From 08244c7ebfd8a80be46ad9cf99e29db5b06452cf Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Tue, 17 Jul 2012 15:05:50 +0200 Subject: [PATCH] Fix for an Issue #104 --- 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 4522ca261..3f7f18552 100644 --- a/lib/core/agent.py +++ b/lib/core/agent.py @@ -851,7 +851,7 @@ class Agent: Replaces payload inside the input string with a given payload """ - return re.sub("(%s.*?%s)" % (PAYLOAD_DELIMITER, PAYLOAD_DELIMITER), "%s%s%s" % (PAYLOAD_DELIMITER, payload, PAYLOAD_DELIMITER), inpStr) if inpStr else inpStr + return re.sub("(%s.*?%s)" % (PAYLOAD_DELIMITER, PAYLOAD_DELIMITER), ("%s%s%s" % (PAYLOAD_DELIMITER, payload, PAYLOAD_DELIMITER)).replace("\\", r"\\"), inpStr) if inpStr else inpStr def runAsDBMSUser(self, query): if conf.dCred and "Ad Hoc Distributed Queries" not in query: