mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-04 14:55:40 +00:00
minor update regarding support for Unicode characters in Oracle
This commit is contained in:
parent
704488a4e4
commit
f4e7bf1d51
2 changed files with 7 additions and 3 deletions
|
|
@ -2682,7 +2682,11 @@ def decodeIntToUnicode(value):
|
|||
Decodes inferenced integer value with usage of current page encoding
|
||||
"""
|
||||
try:
|
||||
return unichr(value)
|
||||
# http://dev.mysql.com/doc/refman/5.0/en/string-functions.html#function_ord
|
||||
if Backend.getIdentifiedDbms() in (DBMS.MYSQL,):
|
||||
return struct.pack('B' if value<256 else '<H', value).decode(kb.pageEncoding or UNICODE_ENCODING)
|
||||
else:
|
||||
return unichr(value)
|
||||
except:
|
||||
return INFERENCE_UNKNOWN_CHAR
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue