Minor bug fix

This commit is contained in:
Bernardo Damele 2010-05-28 23:39:52 +00:00
parent 10521b68eb
commit e811101dce
2 changed files with 4 additions and 2 deletions

View File

@ -55,6 +55,7 @@ from lib.core.data import paths
from lib.core.data import queries from lib.core.data import queries
from lib.core.data import temp from lib.core.data import temp
from lib.core.convert import urlencode from lib.core.convert import urlencode
from lib.core.convert import utf8decode
from lib.core.exception import sqlmapFilePathException from lib.core.exception import sqlmapFilePathException
from lib.core.exception import sqlmapNoneDataException from lib.core.exception import sqlmapNoneDataException
from lib.core.exception import sqlmapMissingDependence from lib.core.exception import sqlmapMissingDependence
@ -381,7 +382,7 @@ def dataToOutFile(data):
rFilePath = "%s%s%s" % (conf.filePath, os.sep, rFile) rFilePath = "%s%s%s" % (conf.filePath, os.sep, rFile)
rFileFP = codecs.open(rFilePath, "wb", conf.dataEncoding) rFileFP = codecs.open(rFilePath, "wb", conf.dataEncoding)
rFileFP.write(data) rFileFP.write(utf8decode(data))
rFileFP.flush() rFileFP.flush()
rFileFP.close() rFileFP.close()

View File

@ -97,7 +97,8 @@ class Connect:
requestMsg += "?%s" % params requestMsg += "?%s" % params
elif multipart: elif multipart:
#needed in this form because of potential circle dependency problem (option -> update -> connect -> option) # Needed in this form because of potential circle dependency
# problem (option -> update -> connect -> option)
from lib.core.option import proxyHandler from lib.core.option import proxyHandler
multipartOpener = urllib2.build_opener(proxyHandler, multipartpost.MultipartPostHandler) multipartOpener = urllib2.build_opener(proxyHandler, multipartpost.MultipartPostHandler)