mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-06 12:41:30 +00:00
Minor fixes
This commit is contained in:
@@ -380,9 +380,9 @@ def dataToOutFile(data):
|
||||
|
||||
rFile = filePathToString(conf.rFile)
|
||||
rFilePath = "%s%s%s" % (conf.filePath, os.sep, rFile)
|
||||
rFileFP = codecs.open(rFilePath, "wb", conf.dataEncoding)
|
||||
rFileFP = codecs.open(rFilePath, "wb")
|
||||
|
||||
rFileFP.write(utf8decode(data))
|
||||
rFileFP.write(data)
|
||||
rFileFP.flush()
|
||||
rFileFP.close()
|
||||
|
||||
@@ -421,7 +421,7 @@ def fileToStr(fileName):
|
||||
@rtype: C{str}
|
||||
"""
|
||||
|
||||
filePointer = codecs.open(fileName, "rb", conf.dataEncoding)
|
||||
filePointer = codecs.open(fileName, "rb")
|
||||
fileText = filePointer.read()
|
||||
|
||||
return fileText.replace(" ", "").replace("\t", "").replace("\r", "").replace("\n", " ")
|
||||
|
||||
Reference in New Issue
Block a user