mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-06 04:31:30 +00:00
Fix for an Issue #656
This commit is contained in:
@@ -1484,7 +1484,12 @@ def safeStringFormat(format_, params):
|
||||
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):
|
||||
retVal = retVal.replace("%s", params, 1)
|
||||
|
||||
Reference in New Issue
Block a user