mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-06 12:41:30 +00:00
Replacing os.sep constructs with os.path.join
This commit is contained in:
@@ -837,7 +837,7 @@ def dataToOutFile(filename, data):
|
||||
retVal = None
|
||||
|
||||
if data:
|
||||
retVal = "%s%s%s" % (conf.filePath, os.sep, filePathToSafeString(filename))
|
||||
retVal = os.path.join(conf.filePath, filePathToSafeString(filename))
|
||||
|
||||
with codecs.open(retVal, "wb", UNICODE_ENCODING) as f:
|
||||
f.write(data)
|
||||
|
||||
Reference in New Issue
Block a user