This commit is contained in:
Miroslav Stampar 2019-03-28 14:13:52 +01:00
parent 83d79692ac
commit 49586ad6dd
2 changed files with 3 additions and 3 deletions

View File

@ -17,7 +17,7 @@ from lib.core.enums import DBMS_DIRECTORY_NAME
from lib.core.enums import OS
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
VERSION = "1.3.3.69"
VERSION = "1.3.3.70"
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)

View File

@ -746,9 +746,9 @@ class Connect(object):
raise SqlmapConnectionException(warnMsg)
finally:
if isinstance(six.binary_type):
if isinstance(page, six.binary_type):
if HTTP_HEADER.CONTENT_TYPE in (responseHeaders or {}) and not re.search(TEXT_CONTENT_TYPE_REGEX, responseHeaders[HTTP_HEADER.CONTENT_TYPE]):
page = unicode(page, errors="ignore")
page = six.text_type(page, errors="ignore")
else:
page = getUnicode(page)