mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-10-08 22:28:14 +00:00
Fixes #3680
This commit is contained in:
parent
03224401ab
commit
4cc13d3c1e
5 changed files with 28 additions and 20 deletions
|
|
@ -58,7 +58,7 @@ from lib.core.convert import getBytes
|
|||
from lib.core.convert import getText
|
||||
from lib.core.convert import getUnicode
|
||||
from lib.core.convert import htmlunescape
|
||||
from lib.core.convert import stdoutencode
|
||||
from lib.core.convert import stdoutEncode
|
||||
from lib.core.data import conf
|
||||
from lib.core.data import kb
|
||||
from lib.core.data import logger
|
||||
|
|
@ -968,9 +968,9 @@ def dataToStdout(data, forceOutput=False, bold=False, content_type=None, status=
|
|||
|
||||
try:
|
||||
if conf.get("api"):
|
||||
sys.stdout.write(stdoutencode(clearColors(data)), status, content_type)
|
||||
sys.stdout.write(stdoutEncode(clearColors(data)), status, content_type)
|
||||
else:
|
||||
sys.stdout.write(stdoutencode(setColor(data, bold=bold)))
|
||||
sys.stdout.write(stdoutEncode(setColor(data, bold=bold)))
|
||||
|
||||
sys.stdout.flush()
|
||||
except IOError:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue