mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-26 03:23:48 +03: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
|
@ -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 New Issue
Block a user