mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-02-03 05:04:11 +03:00
Update lib/core/common.py
Revert of last commit and try 2
This commit is contained in:
parent
8e95470415
commit
c9b8b51c9c
|
@ -2501,7 +2501,13 @@ def decodeIntToUnicode(value):
|
||||||
|
|
||||||
if isinstance(value, int):
|
if isinstance(value, int):
|
||||||
try:
|
try:
|
||||||
retVal = unichr(value)
|
# http://dev.mysql.com/doc/refman/5.0/en/string-functions.html#function_ord
|
||||||
|
if Backend.getIdentifiedDbms() in (DBMS.MYSQL,):
|
||||||
|
retVal = getUnicode(struct.pack('B' if value < 256 else '>H', value))
|
||||||
|
elif value > 255:
|
||||||
|
retVal = unichr(value)
|
||||||
|
else:
|
||||||
|
retVal = getUnicode(chr(value))
|
||||||
except:
|
except:
|
||||||
retVal = INFERENCE_UNKNOWN_CHAR
|
retVal = INFERENCE_UNKNOWN_CHAR
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user