Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 08244c7

Browse files
committed
Fix for an Issue #104
1 parent e30646a commit 08244c7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/core/agent.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -851,7 +851,7 @@ def replacePayload(self, inpStr, payload):
851851
Replaces payload inside the input string with a given payload
852852
"""
853853

854-
return re.sub("(%s.*?%s)" % (PAYLOAD_DELIMITER, PAYLOAD_DELIMITER), "%s%s%s" % (PAYLOAD_DELIMITER, payload, PAYLOAD_DELIMITER), inpStr) if inpStr else inpStr
854+
return re.sub("(%s.*?%s)" % (PAYLOAD_DELIMITER, PAYLOAD_DELIMITER), ("%s%s%s" % (PAYLOAD_DELIMITER, payload, PAYLOAD_DELIMITER)).replace("\\", r"\\"), inpStr) if inpStr else inpStr
855855

856856
def runAsDBMSUser(self, query):
857857
if conf.dCred and "Ad Hoc Distributed Queries" not in query:

0 commit comments

Comments
 (0)