mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-02-02 20:54:13 +03:00
Fixes #1429
This commit is contained in:
parent
d28c72b6f1
commit
4774795d8c
|
@ -1623,6 +1623,15 @@ def safeStringFormat(format_, params):
|
||||||
index = retVal.find("%s", start)
|
index = retVal.find("%s", start)
|
||||||
retVal = retVal[:index] + getUnicode(param) + retVal[index + 2:]
|
retVal = retVal[:index] + getUnicode(param) + retVal[index + 2:]
|
||||||
else:
|
else:
|
||||||
|
if any('%s' in _ for _ in conf.parameters.values()):
|
||||||
|
parts = format_.split(' ')
|
||||||
|
for i in xrange(len(parts)):
|
||||||
|
if PAYLOAD_DELIMITER in parts[i]:
|
||||||
|
parts[i] = parts[i].replace(PAYLOAD_DELIMITER, "")
|
||||||
|
parts[i] = "%s%s" % (parts[i], PAYLOAD_DELIMITER)
|
||||||
|
break
|
||||||
|
format_ = ' '.join(parts)
|
||||||
|
|
||||||
count = 0
|
count = 0
|
||||||
while True:
|
while True:
|
||||||
match = re.search(r"(\A|[^A-Za-z0-9])(%s)([^A-Za-z0-9]|\Z)", retVal)
|
match = re.search(r"(\A|[^A-Za-z0-9])(%s)([^A-Za-z0-9]|\Z)", retVal)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user