mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-25 19:13:48 +03:00
Minor fix
This commit is contained in:
parent
9b231f87d6
commit
2b121c938b
|
@ -1576,7 +1576,7 @@ def getSQLSnippet(dbms, sfile, **variables):
|
|||
for _ in re.findall(r"%RANDINT\d+%", retVal, re.I):
|
||||
retVal = retVal.replace(_, randomInt())
|
||||
|
||||
variables = re.findall(r"%(\w+)%", retVal, re.I)
|
||||
variables = re.findall(r"(?<!\bLIKE\s*')%(\w+)%", retVal, re.I)
|
||||
|
||||
if variables:
|
||||
errMsg = "unresolved variable%s '%s' in SQL file '%s'" % ("s" if len(variables) > 1 else "", ", ".join(variables), sfile)
|
||||
|
|
Loading…
Reference in New Issue
Block a user