mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-04 14:55:40 +00:00
fixed bug related to issue #223
This commit is contained in:
parent
27a12ae85b
commit
cefb03c835
2 changed files with 17 additions and 20 deletions
|
|
@ -736,11 +736,11 @@ def dataToDumpFile(dumpFile, data):
|
|||
dumpFile.write(data)
|
||||
dumpFile.flush()
|
||||
|
||||
def dataToOutFile(data):
|
||||
def dataToOutFile(filename, data):
|
||||
if not data:
|
||||
return "No data retrieved"
|
||||
|
||||
retVal = "%s%s%s" % (conf.filePath, os.sep, filePathToString(conf.rFile))
|
||||
retVal = "%s%s%s" % (conf.filePath, os.sep, filePathToString(filename))
|
||||
|
||||
with codecs.open(retVal, "wb") as f:
|
||||
f.write(data)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue