mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-02-02 20:54:13 +03:00
Bug fix for an Issue #1539
This commit is contained in:
parent
a6ea19067b
commit
fb2cb25afe
|
@ -2943,10 +2943,16 @@ def decodeIntToUnicode(value):
|
||||||
if isinstance(value, int):
|
if isinstance(value, int):
|
||||||
try:
|
try:
|
||||||
if value > 255:
|
if value > 255:
|
||||||
|
if Backend.isDbms(DBMS.MSSQL):
|
||||||
|
encoding="UTF-16-LE" if isDBMSVersionAtLeast("2012") else "UTF-16-BE"
|
||||||
|
else:
|
||||||
|
encoding = conf.charset
|
||||||
|
|
||||||
_ = "%x" % value
|
_ = "%x" % value
|
||||||
if len(_) % 2 == 1:
|
if len(_) % 2 == 1:
|
||||||
_ = "0%s" % _
|
_ = "0%s" % _
|
||||||
retVal = getUnicode(hexdecode(_), encoding="UTF-16" if Backend.isDbms(DBMS.MSSQL) else None)
|
|
||||||
|
retVal = getUnicode(hexdecode(_), encoding)
|
||||||
else:
|
else:
|
||||||
retVal = getUnicode(chr(value))
|
retVal = getUnicode(chr(value))
|
||||||
except:
|
except:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user