mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-22 09:36:35 +03:00
Merge branch 'master' of github.com:sqlmapproject/sqlmap
This commit is contained in:
commit
874e2176c6
|
@ -67,7 +67,7 @@ class Dump(object):
|
|||
def setOutputFile(self):
|
||||
self._outputFile = "%s%sstdout" % (conf.outputPath, os.sep)
|
||||
try:
|
||||
self._outputFP = codecs.open(self._outputFile, "ab", UNICODE_ENCODING)
|
||||
self._outputFP = codecs.open(self._outputFile, "ab" if not conf.flushSession else "wb", UNICODE_ENCODING)
|
||||
except IOError, ex:
|
||||
errMsg = "error occurred while opening log file ('%s')" % ex
|
||||
raise SqlmapGenericException, errMsg
|
||||
|
|
Loading…
Reference in New Issue
Block a user