mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-06 04:31:30 +00:00
minor fix
This commit is contained in:
@@ -139,6 +139,10 @@ class Enumeration(GenericEnumeration):
|
||||
if not kb.data.cachedTables:
|
||||
errMsg = "unable to retrieve the tables for any database"
|
||||
raise sqlmapNoneDataException(errMsg)
|
||||
else:
|
||||
for db, tables in kb.data.cachedTables.items():
|
||||
if tables:
|
||||
kb.data.cachedTables[db] = sorted(tables)
|
||||
|
||||
return kb.data.cachedTables
|
||||
|
||||
|
||||
@@ -973,7 +973,9 @@ class Enumeration:
|
||||
else:
|
||||
raise sqlmapNoneDataException, errMsg
|
||||
else:
|
||||
kb.data.cachedTables.sort()
|
||||
for db, tables in kb.data.cachedTables.items():
|
||||
if tables:
|
||||
kb.data.cachedTables[db] = sorted(tables)
|
||||
|
||||
return kb.data.cachedTables
|
||||
|
||||
|
||||
Reference in New Issue
Block a user