mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-03 22:31:34 +00:00
Fixes #3796
This commit is contained in:
parent
f9489c3352
commit
83e1daab96
2 changed files with 6 additions and 1 deletions
|
|
@ -164,8 +164,13 @@ def encodeHex(value, binary=True):
|
|||
True
|
||||
>>> encodeHex("123", binary=False)
|
||||
'313233'
|
||||
>>> encodeHex(b"123"[0]) == b"31"
|
||||
True
|
||||
"""
|
||||
|
||||
if isinstance(value, int):
|
||||
value = six.unichr(value)
|
||||
|
||||
if isinstance(value, six.text_type):
|
||||
value = value.encode(UNICODE_ENCODING)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue