diff --git a/lib/core/settings.py b/lib/core/settings.py index d5bca0e07..6c25ced44 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.9.13" +VERSION = "1.3.9.14" 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 b8debff96..351193cce 100644 --- a/thirdparty/clientform/clientform.py +++ b/thirdparty/clientform/clientform.py @@ -227,6 +227,9 @@ def unescape(data, entities, encoding=DEFAULT_ENCODING): if data is None or "&" not in data: return data + if isinstance(data, six.string_types): + encoding = None + def replace_entities(match, entities=entities, encoding=encoding): ent = match.group() if ent[1] == "#": @@ -279,7 +282,6 @@ def get_entitydefs(): entitydefs["&%s;" % name] = _unichr(codepoint) return entitydefs - def issequence(x): try: x[0]