mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-02-02 20:54:13 +03:00
Another patch for #1539
This commit is contained in:
parent
9c69f56a34
commit
a212f0c240
|
@ -2943,16 +2943,17 @@ 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-BE"
|
|
||||||
else:
|
|
||||||
encoding = conf.charset
|
|
||||||
|
|
||||||
_ = "%x" % value
|
_ = "%x" % value
|
||||||
if len(_) % 2 == 1:
|
if len(_) % 2 == 1:
|
||||||
_ = "0%s" % _
|
_ = "0%s" % _
|
||||||
|
raw = hexdecode(_)
|
||||||
|
|
||||||
retVal = getUnicode(hexdecode(_), encoding)
|
if Backend.isDbms(DBMS.MSSQL):
|
||||||
|
retVal = getUnicode(raw, "UTF-16-BE")
|
||||||
|
elif Backend.isDbms(DBMS.PGSQL):
|
||||||
|
retVal = unichr(value)
|
||||||
|
else:
|
||||||
|
retVal = getUnicode(raw, conf.charset)
|
||||||
else:
|
else:
|
||||||
retVal = getUnicode(chr(value))
|
retVal = getUnicode(chr(value))
|
||||||
except:
|
except:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user