mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-28 20:43:49 +03:00
Fix for an Issue #87
This commit is contained in:
parent
162da75a04
commit
b11fd8b9f7
|
@ -77,18 +77,15 @@ class Dump:
|
||||||
if isListLike(data):
|
if isListLike(data):
|
||||||
self.lister(header, data, sort)
|
self.lister(header, data, sort)
|
||||||
elif data is not None:
|
elif data is not None:
|
||||||
if not isinstance(data, bool):
|
_ = getUnicode(data)
|
||||||
data = getUnicode(data)
|
|
||||||
|
|
||||||
if data[-1] == '\n':
|
if _ and _[-1] == '\n':
|
||||||
data = data[:-1]
|
_ = _[:-1]
|
||||||
|
|
||||||
if "\n" in data:
|
if "\n" in _:
|
||||||
self._write("%s:\n---\n%s\n---\n" % (header, data))
|
self._write("%s:\n---\n%s\n---\n" % (header, _))
|
||||||
elif isinstance(data, bool):
|
|
||||||
self._write("%s: %s\n" % (header, data))
|
|
||||||
else:
|
else:
|
||||||
self._write("%s: '%s'\n" % (header, data))
|
self._write("%s: %s\n" % (header, ("'%s'" % _) if isinstance(data, basestring) else _))
|
||||||
else:
|
else:
|
||||||
self._write("%s:\tNone\n" % header)
|
self._write("%s:\tNone\n" % header)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user