Trivial patch

This commit is contained in:
Miroslav Štampar 2026-07-21 09:06:10 +02:00
parent e589936982
commit 6d9322bc74
2 changed files with 2 additions and 2 deletions

View file

@ -20,7 +20,7 @@ from lib.core.enums import OS
from thirdparty import six
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
VERSION = "1.10.7.155"
VERSION = "1.10.7.156"
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

@ -238,7 +238,7 @@ def checkCharEncoding(encoding, warn=True):
# Reference: http://docs.python.org/library/codecs.html
try:
codecs.lookup(encoding)
except LookupError:
except (LookupError, ValueError): # ValueError: an attacker-controlled charset with a NUL (e.g. "utf-8\x00") -> "embedded null character"
encoding = None
if encoding: