mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-27 04:05:58 +00:00
minor update
This commit is contained in:
parent
690281dce1
commit
54e0ba935a
1 changed files with 3 additions and 2 deletions
|
|
@ -426,9 +426,10 @@ def dataToStdout(data, forceOutput=False):
|
||||||
if forceOutput or (conf.verbose > 0) and not getCurrentThreadData().disableStdOut:
|
if forceOutput or (conf.verbose > 0) and not getCurrentThreadData().disableStdOut:
|
||||||
try:
|
try:
|
||||||
sys.stdout.write(data)
|
sys.stdout.write(data)
|
||||||
sys.stdout.flush()
|
|
||||||
except UnicodeEncodeError:
|
except UnicodeEncodeError:
|
||||||
print data.encode(conf.dataEncoding)
|
sys.stdout.write(data.encode(conf.dataEncoding))
|
||||||
|
finally:
|
||||||
|
sys.stdout.flush()
|
||||||
|
|
||||||
def dataToSessionFile(data):
|
def dataToSessionFile(data):
|
||||||
if not conf.sessionFile or kb.suppressSession:
|
if not conf.sessionFile or kb.suppressSession:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue