Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d28c72b commit 4774795Copy full SHA for 4774795
1 file changed
lib/core/common.py
@@ -1623,6 +1623,15 @@ def safeStringFormat(format_, params):
1623
index = retVal.find("%s", start)
1624
retVal = retVal[:index] + getUnicode(param) + retVal[index + 2:]
1625
else:
1626
+ if any('%s' in _ for _ in conf.parameters.values()):
1627
+ parts = format_.split(' ')
1628
+ for i in xrange(len(parts)):
1629
+ if PAYLOAD_DELIMITER in parts[i]:
1630
+ parts[i] = parts[i].replace(PAYLOAD_DELIMITER, "")
1631
+ parts[i] = "%s%s" % (parts[i], PAYLOAD_DELIMITER)
1632
+ break
1633
+ format_ = ' '.join(parts)
1634
+
1635
count = 0
1636
while True:
1637
match = re.search(r"(\A|[^A-Za-z0-9])(%s)([^A-Za-z0-9]|\Z)", retVal)
0 commit comments