mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-05-30 02:33:12 +03:00
fix of a wrong assumption (e.g. decodeIntToUnicode(12345) has been returning a "09" instead of a single unicode character)
This commit is contained in:
parent
4d9dcbf5db
commit
2589521ecf
|
@ -2682,7 +2682,7 @@ def decodeIntToUnicode(value):
|
||||||
Decodes inferenced integer value with usage of current page encoding
|
Decodes inferenced integer value with usage of current page encoding
|
||||||
"""
|
"""
|
||||||
try:
|
try:
|
||||||
return struct.pack('B' if value<256 else '>H', value).decode(kb.pageEncoding or UNICODE_ENCODING)
|
return unichr(value)
|
||||||
except:
|
except:
|
||||||
return INFERENCE_UNKNOWN_CHAR
|
return INFERENCE_UNKNOWN_CHAR
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user