mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-02-02 20:54:13 +03:00
Patch for an Issue #847
This commit is contained in:
parent
c6a8feea8a
commit
70215a95a1
|
@ -2809,14 +2809,11 @@ def decodeIntToUnicode(value):
|
||||||
|
|
||||||
if isinstance(value, int):
|
if isinstance(value, int):
|
||||||
try:
|
try:
|
||||||
# http://dev.mysql.com/doc/refman/5.0/en/string-functions.html#function_ord
|
if value > 255:
|
||||||
if Backend.getIdentifiedDbms() in (DBMS.MYSQL,):
|
|
||||||
_ = "%x" % value
|
_ = "%x" % value
|
||||||
if len(_) % 2 == 1:
|
if len(_) % 2 == 1:
|
||||||
_ = "0%s" % _
|
_ = "0%s" % _
|
||||||
retVal = getUnicode(hexdecode(_))
|
retVal = getUnicode(hexdecode(_), encoding="UTF-16" if Backend.isDbms(DBMS.MSSQL) else None)
|
||||||
elif value > 255:
|
|
||||||
retVal = unichr(value)
|
|
||||||
else:
|
else:
|
||||||
retVal = getUnicode(chr(value))
|
retVal = getUnicode(chr(value))
|
||||||
except:
|
except:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user