From 98fdc493f49fe8ee629e5ce04b82d91d69db40b6 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Fri, 10 Jun 2016 17:42:11 +0200 Subject: [PATCH] Proper patch for #1923 (Fixes #1940, #1941) --- lib/core/common.py | 4 ++-- lib/core/settings.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/core/common.py b/lib/core/common.py index 3541d43ac..1cf955862 100644 --- a/lib/core/common.py +++ b/lib/core/common.py @@ -940,8 +940,8 @@ def dataToOutFile(filename, data): retVal = os.path.join(conf.filePath, filePathToSafeString(filename)) try: - with openFile(retVal, "w+b") as f: - f.write(data) + with open(retVal, "w+b") as f: # has to stay as non-codecs because data is raw ASCII encoded data + f.write(unicodeencode(data)) except IOError, ex: errMsg = "something went wrong while trying to write " errMsg += "to the output file ('%s')" % getSafeExString(ex) diff --git a/lib/core/settings.py b/lib/core/settings.py index 09e639174..33fc99fec 100644 --- a/lib/core/settings.py +++ b/lib/core/settings.py @@ -19,7 +19,7 @@ from lib.core.enums import OS from lib.core.revision import getRevisionNumber # sqlmap version (...) -VERSION = "1.0.6.28" +VERSION = "1.0.6.29" REVISION = getRevisionNumber() STABLE = VERSION.count('.') <= 2 VERSION_STRING = "sqlmap/%s#%s" % (VERSION, "stable" if STABLE else "dev")