From 84073449915f8c8023ba8f6537e10cbb08dc396d Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Thu, 10 Oct 2019 16:02:43 +0300 Subject: [PATCH] Fixes #3961 --- lib/core/settings.py | 2 +- thirdparty/clientform/clientform.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/core/settings.py b/lib/core/settings.py index bd955a1e2..e393ee5ea 100644 --- a/lib/core/settings.py +++ b/lib/core/settings.py @@ -18,7 +18,7 @@ from lib.core.enums import OS from thirdparty.six import unichr as _unichr # sqlmap version (...) -VERSION = "1.3.10.11" +VERSION = "1.3.10.12" 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/thirdparty/clientform/clientform.py b/thirdparty/clientform/clientform.py index 351193cce..48f897a9b 100644 --- a/thirdparty/clientform/clientform.py +++ b/thirdparty/clientform/clientform.py @@ -237,7 +237,7 @@ def unescape(data, entities, encoding=DEFAULT_ENCODING): repl = entities.get(ent) if repl is not None: - if type(repl) != type(""): + if type(repl) != type("") and encoding is not None: try: repl = repl.encode(encoding) except UnicodeError: