minor fix

This commit is contained in:
Miroslav Stampar 2011-10-28 12:49:35 +00:00
parent 6c0e8b0ea8
commit f7be0ca4e2
2 changed files with 7 additions and 1 deletions

View File

@ -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

View File

@ -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