mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-02-03 05:04:11 +03:00
Minor bug fix when --dbs has only one DB name
This commit is contained in:
parent
c9ab8ae60e
commit
b3da473840
|
@ -684,7 +684,10 @@ class Enumeration:
|
|||
value = inject.getValue(query, blind=False, error=False)
|
||||
|
||||
if value:
|
||||
kb.data.cachedDbs = value
|
||||
if isinstance(value, basestring):
|
||||
kb.data.cachedDbs = [value]
|
||||
else:
|
||||
kb.data.cachedDbs = value
|
||||
|
||||
if not kb.data.cachedDbs and not conf.direct:
|
||||
infoMsg = "fetching number of databases"
|
||||
|
|
Loading…
Reference in New Issue
Block a user