mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-22 17:46:37 +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:
|
if not kb.data.cachedTables:
|
||||||
errMsg = "unable to retrieve the tables for any database"
|
errMsg = "unable to retrieve the tables for any database"
|
||||||
raise sqlmapNoneDataException(errMsg)
|
raise sqlmapNoneDataException(errMsg)
|
||||||
|
else:
|
||||||
|
for db, tables in kb.data.cachedTables.items():
|
||||||
|
if tables:
|
||||||
|
kb.data.cachedTables[db] = sorted(tables)
|
||||||
|
|
||||||
return kb.data.cachedTables
|
return kb.data.cachedTables
|
||||||
|
|
||||||
|
|
|
@ -973,7 +973,9 @@ class Enumeration:
|
||||||
else:
|
else:
|
||||||
raise sqlmapNoneDataException, errMsg
|
raise sqlmapNoneDataException, errMsg
|
||||||
else:
|
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
|
return kb.data.cachedTables
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user