mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-08-02 11:20:10 +03:00
fix --smoke-test error(safeStringFormat)
This commit is contained in:
parent
b07cbb648d
commit
11922225d0
|
@ -1564,8 +1564,12 @@ def safeStringFormat(format_, params):
|
|||
"""
|
||||
Avoids problems with inappropriate string format strings
|
||||
|
||||
>>> safeStringFormat('foobar%d%s', ('1', 2))
|
||||
>>> safeStringFormat('foobar%s%s', ('1', 2))
|
||||
u'foobar12'
|
||||
>>> safeStringFormat('foobar %d%s', ('1', 2))
|
||||
u'foobar 12'
|
||||
>>> safeStringFormat('foobar=%d%s', ('1', 2))
|
||||
u'foobar=12'
|
||||
"""
|
||||
|
||||
if format_.count(PAYLOAD_DELIMITER) == 2:
|
||||
|
|
Loading…
Reference in New Issue
Block a user