From 764d114b3cd2c28f87d30d4d0e925dc86b0ea38c Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Tue, 2 Jan 2018 00:42:20 +0100 Subject: [PATCH] Fixes #2858 --- lib/core/settings.py | 2 +- lib/request/basic.py | 5 +++++ txt/checksum.md5 | 4 ++-- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/lib/core/settings.py b/lib/core/settings.py index 5033818fb..210d80c82 100644 --- a/lib/core/settings.py +++ b/lib/core/settings.py @@ -19,7 +19,7 @@ from lib.core.enums import DBMS_DIRECTORY_NAME from lib.core.enums import OS # sqlmap version (...) -VERSION = "1.1.12.35" +VERSION = "1.1.1.0" 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/request/basic.py b/lib/request/basic.py index 424b5bf74..402b3359c 100644 --- a/lib/request/basic.py +++ b/lib/request/basic.py @@ -18,11 +18,13 @@ from lib.core.common import extractErrorMessage from lib.core.common import extractRegexResult from lib.core.common import getPublicTypeMembers from lib.core.common import getUnicode +from lib.core.common import isListLike from lib.core.common import randomStr from lib.core.common import readInput from lib.core.common import resetCookieJar from lib.core.common import singleTimeLogMessage from lib.core.common import singleTimeWarnMessage +from lib.core.common import unArrayizeValue from lib.core.data import conf from lib.core.data import kb from lib.core.data import logger @@ -150,6 +152,9 @@ def checkCharEncoding(encoding, warn=True): 'utf8' """ + if isListLike(encoding): + encoding = unArrayizeValue(encoding) + if encoding: encoding = encoding.lower() else: diff --git a/txt/checksum.md5 b/txt/checksum.md5 index 10c55e452..6ff0b5e56 100644 --- a/txt/checksum.md5 +++ b/txt/checksum.md5 @@ -46,7 +46,7 @@ eec64e3d4c3f77eded3270b8116698ea lib/core/option.py 760d9df2a27ded29109b390ab202e72d lib/core/replication.py a2466b62e67f8b31736bac4dac590e51 lib/core/revision.py 02d4762140a72fd44668d3dab5eabda9 lib/core/session.py -3033b491886d936a188c0bef6d2cdd6f lib/core/settings.py +ccb19cc96bce7df46af7a4482bc3728e lib/core/settings.py 35bffbad762eb9e03db9e93b1c991103 lib/core/shell.py a59ec28371ae067a6fdd8f810edbee3d lib/core/subprocessng.py d93501771b41315f9fb949305b6ed257 lib/core/target.py @@ -66,7 +66,7 @@ e07930095e56de11c297d7ac1a1706f2 lib/parse/html.py d8d9bcf9e7107a5e2cf2dd10f115ac28 lib/parse/payloads.py 2b87577dc6d3609e96fc1e049def5b4f lib/parse/sitemap.py d2f13a0e2fef5273d419d06e516122e1 lib/request/basicauthhandler.py -4f8b3d682093fc577592e85999400149 lib/request/basic.py +7e84ea8e6d097ad1ea5cbef10e3ccfe1 lib/request/basic.py 6ece5e32cc1496720af42a762bf8c3ee lib/request/comparison.py ae823462aad7cd1081e6609192ba3109 lib/request/connect.py ad6f76839408d827abfcdc57813f8518 lib/request/direct.py