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

Skip to content

Commit 83e1daa

Browse files
committed
Fixes #3796
1 parent f9489c3 commit 83e1daa

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

lib/core/convert.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,8 +164,13 @@ def encodeHex(value, binary=True):
164164
True
165165
>>> encodeHex("123", binary=False)
166166
'313233'
167+
>>> encodeHex(b"123"[0]) == b"31"
168+
True
167169
"""
168170

171+
if isinstance(value, int):
172+
value = six.unichr(value)
173+
169174
if isinstance(value, six.text_type):
170175
value = value.encode(UNICODE_ENCODING)
171176

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
from thirdparty.six import unichr as _unichr
1919

2020
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
21-
VERSION = "1.3.7.5"
21+
VERSION = "1.3.7.6"
2222
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
2323
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
2424
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)

0 commit comments

Comments
 (0)