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: