mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-06 12:41:30 +00:00
Minor bug fix when --dbs has only one DB name
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user