mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-03 22:31:34 +00:00
Minor patch
This commit is contained in:
parent
22dc46c926
commit
e4960ce747
3 changed files with 6 additions and 4 deletions
|
|
@ -193,10 +193,12 @@ def encodeHex(value, binary=True):
|
|||
'313233'
|
||||
>>> encodeHex(b"123"[0]) == b"31"
|
||||
True
|
||||
>>> encodeHex(123, binary=False)
|
||||
'7b'
|
||||
"""
|
||||
|
||||
if isinstance(value, int):
|
||||
value = six.unichr(value)
|
||||
value = six.int2byte(value)
|
||||
|
||||
if isinstance(value, six.text_type):
|
||||
value = value.encode(UNICODE_ENCODING)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue