mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-29 13:03:50 +03:00
minor update
This commit is contained in:
parent
4ac3794e80
commit
367de838c1
|
@ -2538,7 +2538,7 @@ def decodeIntToUnicode(value):
|
||||||
"""
|
"""
|
||||||
try:
|
try:
|
||||||
# http://dev.mysql.com/doc/refman/5.0/en/string-functions.html#function_ord
|
# http://dev.mysql.com/doc/refman/5.0/en/string-functions.html#function_ord
|
||||||
if Backend.getIdentifiedDbms() in (DBMS.MYSQL,):
|
if Backend.getIdentifiedDbms() in (DBMS.MYSQL,) or conf.charset:
|
||||||
return struct.pack('B' if value < 256 else '<H', value).decode(kb.pageEncoding or UNICODE_ENCODING)
|
return struct.pack('B' if value < 256 else '<H', value).decode(kb.pageEncoding or UNICODE_ENCODING)
|
||||||
else:
|
else:
|
||||||
return unichr(value)
|
return unichr(value)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user