mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-08 13:41:29 +00:00
fix for a bug reported by malice.anon@gmail.com (TypeError: encode() takes no keyword arguments)
This commit is contained in:
@@ -587,7 +587,7 @@ def dataToStdout(data, forceOutput=False):
|
|||||||
try:
|
try:
|
||||||
sys.stdout.write(data.encode(sys.stdout.encoding))
|
sys.stdout.write(data.encode(sys.stdout.encoding))
|
||||||
except:
|
except:
|
||||||
sys.stdout.write(data.encode(UNICODE_ENCODING, errors="replace"))
|
sys.stdout.write(data.encode(UNICODE_ENCODING))
|
||||||
finally:
|
finally:
|
||||||
sys.stdout.flush()
|
sys.stdout.flush()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user