mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-26 03:23:48 +03:00
bug fix to be able to write unicode chars to debug file
This commit is contained in:
parent
fc560f2b75
commit
036b612bcb
|
@ -172,7 +172,7 @@ def liveTest():
|
||||||
errMsg = "test failed "
|
errMsg = "test failed "
|
||||||
if failedItem:
|
if failedItem:
|
||||||
errMsg += "at parsing item: %s - scan folder is %s" % (failedItem, paths.SQLMAP_OUTPUT_PATH)
|
errMsg += "at parsing item: %s - scan folder is %s" % (failedItem, paths.SQLMAP_OUTPUT_PATH)
|
||||||
console_output_fd = open("%s%sconsole_output" % (paths.SQLMAP_OUTPUT_PATH, os.sep), "wb")
|
console_output_fd = codecs.open("%s%sconsole_output" % (paths.SQLMAP_OUTPUT_PATH, os.sep), "wb", UNICODE_ENCODING)
|
||||||
console_output_fd.write(failedParseOn)
|
console_output_fd.write(failedParseOn)
|
||||||
console_output_fd.close()
|
console_output_fd.close()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user