mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-08 13:41:29 +00:00
Initial patch for an Issue #846
This commit is contained in:
@@ -1542,7 +1542,7 @@ def safeStringFormat(format_, params):
|
|||||||
while True:
|
while True:
|
||||||
match = re.search(r"(\A|[^A-Za-z0-9])(%s)([^A-Za-z0-9]|\Z)", retVal)
|
match = re.search(r"(\A|[^A-Za-z0-9])(%s)([^A-Za-z0-9]|\Z)", retVal)
|
||||||
if match:
|
if match:
|
||||||
if count > len(params):
|
if count >= len(params):
|
||||||
raise Exception("wrong number of parameters during string formatting")
|
raise Exception("wrong number of parameters during string formatting")
|
||||||
else:
|
else:
|
||||||
retVal = re.sub(r"(\A|[^A-Za-z0-9])(%s)([^A-Za-z0-9]|\Z)", r"\g<1>%s\g<3>" % params[count], retVal, 1)
|
retVal = re.sub(r"(\A|[^A-Za-z0-9])(%s)([^A-Za-z0-9]|\Z)", r"\g<1>%s\g<3>" % params[count], retVal, 1)
|
||||||
|
|||||||
Reference in New Issue
Block a user