mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-07 21:21:33 +00:00
Minor patch
This commit is contained in:
@@ -777,7 +777,7 @@ def dataToStdout(data, forceOutput=False, bold=False, content_type=None, status=
|
|||||||
if kb.get("multiThreadMode"):
|
if kb.get("multiThreadMode"):
|
||||||
logging._acquireLock()
|
logging._acquireLock()
|
||||||
|
|
||||||
if isinstance(data, basestring):
|
if isinstance(data, unicode):
|
||||||
message = stdoutencode(data)
|
message = stdoutencode(data)
|
||||||
else:
|
else:
|
||||||
message = data
|
message = data
|
||||||
|
|||||||
@@ -141,7 +141,7 @@ def stdoutencode(data):
|
|||||||
try:
|
try:
|
||||||
# Reference: http://bugs.python.org/issue1602
|
# Reference: http://bugs.python.org/issue1602
|
||||||
if IS_WIN:
|
if IS_WIN:
|
||||||
output = data.encode('ascii', "replace")
|
output = data.encode("ascii", "replace")
|
||||||
|
|
||||||
if output != data:
|
if output != data:
|
||||||
warnMsg = "cannot properly display Unicode characters "
|
warnMsg = "cannot properly display Unicode characters "
|
||||||
|
|||||||
Reference in New Issue
Block a user