From 679f0cf7725f7af9658c509082aa5ec191548074 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Tue, 1 Mar 2016 15:36:00 +0100 Subject: [PATCH] Fixes #1738 --- lib/core/settings.py | 2 +- lib/request/basic.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/core/settings.py b/lib/core/settings.py index 80b94fd8e..033a97e22 100644 --- a/lib/core/settings.py +++ b/lib/core/settings.py @@ -20,7 +20,7 @@ from lib.core.enums import OS from lib.core.revision import getRevisionNumber # sqlmap version and site -VERSION = "1.0.0.10" +VERSION = "1.0.0.11" REVISION = getRevisionNumber() STABLE = VERSION.count('.') <= 2 VERSION_STRING = "sqlmap/%s#%s" % (VERSION, "stable" if STABLE else "dev") diff --git a/lib/request/basic.py b/lib/request/basic.py index 78e793603..0c2557f69 100644 --- a/lib/request/basic.py +++ b/lib/request/basic.py @@ -204,7 +204,7 @@ def checkCharEncoding(encoding, warn=True): # Reference: http://docs.python.org/library/codecs.html try: codecs.lookup(encoding.encode(UNICODE_ENCODING) if isinstance(encoding, unicode) else encoding) - except LookupError: + except (LookupError, ValueError): if warn: warnMsg = "unknown web page charset '%s'. " % encoding warnMsg += "Please report by e-mail to 'dev@sqlmap.org'"