mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-06 12:41:30 +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:
|
||||
sys.stdout.write(data.encode(sys.stdout.encoding))
|
||||
except:
|
||||
sys.stdout.write(data.encode(UNICODE_ENCODING, errors="replace"))
|
||||
sys.stdout.write(data.encode(UNICODE_ENCODING))
|
||||
finally:
|
||||
sys.stdout.flush()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user