mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-04 06:50:14 +00:00
Some refactoring
This commit is contained in:
parent
bb6e8fd4ce
commit
edc6f47758
19 changed files with 88 additions and 93 deletions
|
|
@ -119,13 +119,13 @@ class Custom:
|
|||
infoMsg = "executing SQL statements from given file(s)"
|
||||
logger.info(infoMsg)
|
||||
|
||||
for sfile in re.split(PARAMETER_SPLITTING_REGEX, conf.sqlFile):
|
||||
sfile = sfile.strip()
|
||||
for filename in re.split(PARAMETER_SPLITTING_REGEX, conf.sqlFile):
|
||||
filename = filename.strip()
|
||||
|
||||
if not sfile:
|
||||
if not filename:
|
||||
continue
|
||||
|
||||
snippet = getSQLSnippet(Backend.getDbms(), sfile)
|
||||
snippet = getSQLSnippet(Backend.getDbms(), filename)
|
||||
|
||||
if snippet and all(query.strip().upper().startswith("SELECT") for query in filter(None, snippet.split(';' if ';' in snippet else '\n'))):
|
||||
for query in filter(None, snippet.split(';' if ';' in snippet else '\n')):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue