mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-10-29 12:39:20 +08:00
Proper fix for #1053
This commit is contained in:
+2
-2
@@ -1564,8 +1564,8 @@ def safeStringFormat(format_, params):
|
||||
"""
|
||||
Avoids problems with inappropriate string format strings
|
||||
|
||||
>>> safeStringFormat('foobar%d%s', ('1', 2))
|
||||
u'foobar12'
|
||||
>>> safeStringFormat('SELECT foo FROM %s LIMIT %d', ('bar', '1'))
|
||||
u'SELECT foo FROM bar LIMIT 1'
|
||||
"""
|
||||
|
||||
if format_.count(PAYLOAD_DELIMITER) == 2:
|
||||
|
||||
Reference in New Issue
Block a user