Skip to content

Commit 7fa9c8e

Browse files
committed
Patch for an Issue sqlmapproject#1546
1 parent efe41fb commit 7fa9c8e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/core/agent.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1053,7 +1053,7 @@ def replacePayload(self, value, payload):
10531053
"""
10541054

10551055
_ = re.escape(PAYLOAD_DELIMITER)
1056-
return re.sub("(?s)(%s.*?%s)" % (_, _), ("%s%s%s" % (PAYLOAD_DELIMITER, payload, PAYLOAD_DELIMITER)).replace("\\", r"\\"), value) if value else value
1056+
return re.sub("(?s)(%s.*?%s)" % (_, _), ("%s%s%s" % (PAYLOAD_DELIMITER, getUnicode(payload), PAYLOAD_DELIMITER)).replace("\\", r"\\"), value) if value else value
10571057

10581058
def runAsDBMSUser(self, query):
10591059
if conf.dbmsCred and "Ad Hoc Distributed Queries" not in query:

0 commit comments

Comments
 (0)