From c3f15ef30984acbbd45a23d6fadf6a6bca6a98d3 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Wed, 15 May 2019 00:12:00 +0200 Subject: [PATCH] Minor patches (drei) --- lib/core/dump.py | 4 ++-- lib/core/settings.py | 2 +- lib/parse/cmdline.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/core/dump.py b/lib/core/dump.py index e2d90b304..9ca9fec7d 100644 --- a/lib/core/dump.py +++ b/lib/core/dump.py @@ -557,7 +557,7 @@ class Dump(object): else: dataToDumpFile(dumpFP, "%s%s" % (safeCSValue(column), conf.csvDel)) elif conf.dumpFormat == DUMP_FORMAT.HTML: - dataToDumpFile(dumpFP, "%s" % cgi.escape(column).encode("ascii", "xmlcharrefreplace")) + dataToDumpFile(dumpFP, "%s" % getUnicode(cgi.escape(column).encode("ascii", "xmlcharrefreplace"))) field += 1 @@ -628,7 +628,7 @@ class Dump(object): else: dataToDumpFile(dumpFP, "%s%s" % (safeCSValue(value), conf.csvDel)) elif conf.dumpFormat == DUMP_FORMAT.HTML: - dataToDumpFile(dumpFP, "%s" % cgi.escape(value).encode("ascii", "xmlcharrefreplace")) + dataToDumpFile(dumpFP, "%s" % getUnicode(cgi.escape(value).encode("ascii", "xmlcharrefreplace"))) field += 1 diff --git a/lib/core/settings.py b/lib/core/settings.py index e39690834..9d5f1843f 100644 --- a/lib/core/settings.py +++ b/lib/core/settings.py @@ -18,7 +18,7 @@ from lib.core.enums import OS from thirdparty import six # sqlmap version (...) -VERSION = "1.3.5.90" +VERSION = "1.3.5.91" TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable" TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34} VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE) diff --git a/lib/parse/cmdline.py b/lib/parse/cmdline.py index 01c55ab33..c928ed96c 100644 --- a/lib/parse/cmdline.py +++ b/lib/parse/cmdline.py @@ -900,7 +900,7 @@ def cmdLineParser(argv=None): try: (args, _) = parser.parse_args(argv) except UnicodeEncodeError as ex: - dataToStdout("\n[!] %s\n" % ex.object.encode("unicode-escape")) + dataToStdout("\n[!] %s\n" % getUnicode(ex.object.encode("unicode-escape"))) raise SystemExit except SystemExit: if "-h" in argv and not advancedHelp: