mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-25 11:03:47 +03:00
minor fix
This commit is contained in:
parent
6c0e8b0ea8
commit
f7be0ca4e2
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user