mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-04 06:50:14 +00:00
Bug fixes for search (safeStringFormat should not replace all if given scalar values)
This commit is contained in:
parent
31230c5a42
commit
e836629215
2 changed files with 3 additions and 3 deletions
|
|
@ -1374,9 +1374,9 @@ def safeStringFormat(format_, params):
|
|||
retVal = format_.replace("%d", "%s")
|
||||
|
||||
if isinstance(params, basestring):
|
||||
retVal = retVal.replace("%s", params)
|
||||
retVal = retVal.replace("%s", params, 1)
|
||||
elif not isListLike(params):
|
||||
retVal = retVal.replace("%s", str(params))
|
||||
retVal = retVal.replace("%s", str(params), 1)
|
||||
else:
|
||||
count, index = 0, 0
|
||||
while index != -1:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue