mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-08-06 05:10:10 +03:00
Update common.py
This commit is contained in:
parent
fdc8e664df
commit
989271e9f8
|
@ -872,7 +872,7 @@ def dataToOutFile(filename, data):
|
||||||
retVal = os.path.join(conf.filePath, filePathToSafeString(filename))
|
retVal = os.path.join(conf.filePath, filePathToSafeString(filename))
|
||||||
|
|
||||||
try:
|
try:
|
||||||
with openFile(retVal, "wb") as f:
|
with open(retVal, "wb") as f:
|
||||||
f.write(data)
|
f.write(data)
|
||||||
except IOError, ex:
|
except IOError, ex:
|
||||||
errMsg = "something went wrong while trying to write "
|
errMsg = "something went wrong while trying to write "
|
||||||
|
|
Loading…
Reference in New Issue
Block a user