Fixing CI/CD errors

This commit is contained in:
Miroslav Štampar 2026-07-16 18:52:55 +02:00
parent 43c6574056
commit 0c6f57d9ec
3 changed files with 9 additions and 2 deletions

View file

@ -184,7 +184,7 @@ def _serializeDecode(struct):
# that would surface as 'bytes' and break str consumers - most visibly kb.chars,
# whose str-key lookups then return None and crash cleanupPayload(). Recover such
# cross-version TEXT by decoding valid UTF-8 to 'str'; real binary stays bytes.
if struct.get("pv") == 3:
if struct.get("pv") == 3 or not six.PY3:
return raw
try:
return raw.decode("utf-8")

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.108"
VERSION = "1.10.7.109"
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)