Replaces payload inside the input string with a given payload
(self, value, payload)
| 1239 | return extractRegexResult(r"(?s)%s(?P<result>.*?)%s" % (_, _), value) |
| 1240 | |
| 1241 | def replacePayload(self, value, payload): |
| 1242 | """ |
| 1243 | Replaces payload inside the input string with a given payload |
| 1244 | """ |
| 1245 | |
| 1246 | _ = re.escape(PAYLOAD_DELIMITER) |
| 1247 | return re.sub(r"(?s)(%s.*?%s)" % (_, _), ("%s%s%s" % (PAYLOAD_DELIMITER, getUnicode(payload), PAYLOAD_DELIMITER)).replace("\\", r"\\"), value) if value else value |
| 1248 | |
| 1249 | def runAsDBMSUser(self, query): |
| 1250 | if conf.dbmsCred and "Ad Hoc Distributed Queries" not in query: |
no test coverage detected