mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-27 12:11:48 +00:00
fix for a bug reported by m4l1c3 (object of type 'NoneType' has no len()) and minor update
This commit is contained in:
parent
a2d5358b08
commit
86f93713d3
3 changed files with 17 additions and 20 deletions
|
|
@ -166,7 +166,7 @@ class Dump:
|
|||
if isinstance(table, (list, tuple, set)):
|
||||
table = table[0]
|
||||
|
||||
maxlength = max(maxlength, len(normalizeUnicode(table)))
|
||||
maxlength = max(maxlength, len(normalizeUnicode(table) or str(table)))
|
||||
|
||||
lines = "-" * (int(maxlength) + 2)
|
||||
|
||||
|
|
@ -186,7 +186,7 @@ class Dump:
|
|||
if isinstance(table, (list, tuple, set)):
|
||||
table = table[0]
|
||||
|
||||
blank = " " * (maxlength - len(normalizeUnicode(table)))
|
||||
blank = " " * (maxlength - len(normalizeUnicode(table) or str(table)))
|
||||
self.__write("| %s%s |" % (table, blank))
|
||||
|
||||
self.__write("+%s+\n" % lines)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue