Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 679f0cf

Browse files
committed
Fixes #1738
1 parent 1b5a465 commit 679f0cf

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
from lib.core.revision import getRevisionNumber
2121

2222
# sqlmap version and site
23-
VERSION = "1.0.0.10"
23+
VERSION = "1.0.0.11"
2424
REVISION = getRevisionNumber()
2525
STABLE = VERSION.count('.') <= 2
2626
VERSION_STRING = "sqlmap/%s#%s" % (VERSION, "stable" if STABLE else "dev")

lib/request/basic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ def checkCharEncoding(encoding, warn=True):
204204
# Reference: http://docs.python.org/library/codecs.html
205205
try:
206206
codecs.lookup(encoding.encode(UNICODE_ENCODING) if isinstance(encoding, unicode) else encoding)
207-
except LookupError:
207+
except (LookupError, ValueError):
208208
if warn:
209209
warnMsg = "unknown web page charset '%s'. " % encoding
210210
warnMsg += "Please report by e-mail to '[email protected]'"

0 commit comments

Comments
 (0)