mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-04 06:50:14 +00:00
Minor update
This commit is contained in:
parent
53eb44304f
commit
a6c04a59cb
3 changed files with 7 additions and 5 deletions
|
|
@ -1139,7 +1139,8 @@ def checkFile(filename, raiseOnError=True):
|
|||
|
||||
valid = True
|
||||
|
||||
filename = filename.strip('"\'')
|
||||
if filename:
|
||||
filename = filename.strip('"\'')
|
||||
|
||||
try:
|
||||
if filename is None or not os.path.isfile(filename):
|
||||
|
|
@ -2123,7 +2124,8 @@ def getFileItems(filename, commentPrefix='#', unicode_=True, lowercase=False, un
|
|||
|
||||
retVal = list() if not unique else OrderedDict()
|
||||
|
||||
filename = filename.strip('"\'')
|
||||
if filename:
|
||||
filename = filename.strip('"\'')
|
||||
|
||||
checkFile(filename)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue