mirror of
https://github.com/sqlmapproject/sqlmap
synced 2025-12-06 16:32:23 +01:00
fix for bug reported by dragoun dash (TypeError: sequence item 0: expected string, NoneType found)
This commit is contained in:
parent
468eeb6ccf
commit
6eab7997d1
1 changed files with 4 additions and 1 deletions
|
|
@ -161,7 +161,10 @@ def formatDBMSfp(versions=None):
|
|||
@rtype: C{str}
|
||||
"""
|
||||
|
||||
if ( not versions or versions == [None] ) and kb.dbmsVersion and kb.dbmsVersion[0] != "Unknown":
|
||||
while None in versions:
|
||||
versions.remove(None)
|
||||
|
||||
if not versions and kb.dbmsVersion and kb.dbmsVersion[0] != "Unknown":
|
||||
versions = kb.dbmsVersion
|
||||
|
||||
if isinstance(versions, basestring):
|
||||
|
|
|
|||
Loading…
Reference in a new issue