mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-04 06:50:14 +00:00
Patch for an Issue #976
This commit is contained in:
parent
8cd40f8917
commit
605b126758
4 changed files with 11 additions and 9 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue