mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-01-24 00:04:23 +03:00
Initial patch for an Issue #846
This commit is contained in:
parent
2f37fb295b
commit
ddfec1c668
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user