mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-01-23 15:54:24 +03:00
Fix for an Issue #656
This commit is contained in:
parent
b2cc8f00ef
commit
76b9fad24a
|
@ -1484,7 +1484,12 @@ def safeStringFormat(format_, params):
|
||||||
u'foobar12'
|
u'foobar12'
|
||||||
"""
|
"""
|
||||||
|
|
||||||
retVal = format_.replace("%d", "%s")
|
if format_.count(PAYLOAD_DELIMITER) == 2:
|
||||||
|
_ = format_.split(PAYLOAD_DELIMITER)
|
||||||
|
_[1] = _[1].replace("%d", "%s")
|
||||||
|
retVal = PAYLOAD_DELIMITER.join(_)
|
||||||
|
else:
|
||||||
|
retVal = format_.replace("%d", "%s")
|
||||||
|
|
||||||
if isinstance(params, basestring):
|
if isinstance(params, basestring):
|
||||||
retVal = retVal.replace("%s", params, 1)
|
retVal = retVal.replace("%s", params, 1)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user