Fix for an Issue #884

This commit is contained in:
Miroslav Stampar 2014-10-31 16:45:26 +01:00
parent 0feb379b47
commit 38978c3e54
2 changed files with 3 additions and 1 deletions

View File

@ -989,7 +989,7 @@ def checkFile(filename):
Checks for file existence
"""
if not os.path.isfile(filename):
if filename is None or not os.path.isfile(filename):
raise SqlmapFilePathException("unable to read file '%s'" % filename)
def banner():

View File

@ -750,6 +750,8 @@ def dictionaryAttack(attack_dict):
else:
logger.info("using default dictionary")
dictPaths = filter(None, dictPaths)
for dictPath in dictPaths:
checkFile(dictPath)