mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-06-11 08:33:23 +03:00
minor bug fix
This commit is contained in:
parent
fed178646a
commit
3d66e2dfb1
|
@ -74,7 +74,8 @@ class Dump:
|
|||
def string(self, header, data, sort=True):
|
||||
if isListLike(data):
|
||||
self.lister(header, data, sort)
|
||||
elif data is not None and len(data) > 0:
|
||||
elif data is not None:
|
||||
if not isinstance(data, bool):
|
||||
data = getUnicode(data)
|
||||
|
||||
if data[-1] == '\n':
|
||||
|
@ -82,6 +83,8 @@ class Dump:
|
|||
|
||||
if "\n" in data:
|
||||
self._write("%s:\n---\n%s\n---\n" % (header, data))
|
||||
elif isinstance(data, bool):
|
||||
self._write("%s: %s\n" % (header, data))
|
||||
else:
|
||||
self._write("%s: '%s'\n" % (header, data))
|
||||
else:
|
||||
|
|
Loading…
Reference in New Issue
Block a user