Patch for an Issue #976

This commit is contained in:
Miroslav Stampar
2014-11-26 13:38:21 +01:00
parent 8cd40f8917
commit 605b126758
4 changed files with 11 additions and 9 deletions

View File

@@ -87,7 +87,7 @@ class Dump(object):
def setOutputFile(self):
self._outputFile = os.path.join(conf.outputPath, "log")
try:
self._outputFP = codecs.open(self._outputFile, "ab" if not conf.flushSession else "wb", UNICODE_ENCODING)
self._outputFP = openFile(self._outputFile, "ab" if not conf.flushSession else "wb")
except IOError, ex:
errMsg = "error occurred while opening log file ('%s')" % ex
raise SqlmapGenericException(errMsg)