Minor Python2 bug fix

This commit is contained in:
Miroslav Stampar
2025-12-28 11:26:17 +01:00
parent c95f67c7e2
commit 8be94b488f
3 changed files with 4 additions and 4 deletions

View File

@@ -31,6 +31,7 @@ from lib.core.settings import SAFE_HEX_MARKER
from lib.core.settings import UNICODE_ENCODING
from thirdparty import six
from thirdparty.six import unichr as _unichr
from thirdparty.six.moves import html_parser
from thirdparty.six.moves import collections_abc as _collections
try:
@@ -100,7 +101,6 @@ def htmlUnescape(value):
import html
return html.unescape(value)
else:
from six.moves import html_parser
return html_parser.HTMLParser().unescape(value)
return value

View File

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