mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-25 19:13:48 +03:00
fix for a bug reported by zack.payton@executiveinstruments.com (object of type 'NoneType' has no len())
This commit is contained in:
parent
14c87ec80d
commit
09e88cfb19
|
@ -148,7 +148,7 @@ class Dump:
|
|||
if isinstance(table, (list, tuple, set)):
|
||||
table = table[0]
|
||||
|
||||
maxlength = max(maxlength, len(table))
|
||||
maxlength = max(maxlength, len(str(table)))
|
||||
|
||||
lines = "-" * (int(maxlength) + 2)
|
||||
|
||||
|
@ -168,7 +168,7 @@ class Dump:
|
|||
if isinstance(table, (list, tuple, set)):
|
||||
table = table[0]
|
||||
|
||||
blank = " " * (maxlength - len(table))
|
||||
blank = " " * (maxlength - len(str(table)))
|
||||
self.__write("| %s%s |" % (table, blank))
|
||||
|
||||
self.__write("+%s+\n" % lines)
|
||||
|
|
Loading…
Reference in New Issue
Block a user