mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-11-23 16:42:02 +00:00
Minor patch
This commit is contained in:
parent
15a39b6ee9
commit
112356ac5c
2 changed files with 2 additions and 2 deletions
|
|
@ -4044,7 +4044,7 @@ def decodeIntToUnicode(value):
|
|||
# Reference: https://docs.microsoft.com/en-us/sql/relational-databases/collations/collation-and-unicode-support?view=sql-server-2017 and https://stackoverflow.com/a/14488478
|
||||
# supplementary codepoints (>0xFFFF, _SC collations) aren't 2-byte UTF-16; decode direct
|
||||
retVal = _unichr(value) if value > 0xFFFF else getUnicode(raw, "UTF-16-BE")
|
||||
elif Backend.getIdentifiedDbms() in (DBMS.PGSQL, DBMS.ORACLE, DBMS.SQLITE, DBMS.DB2, DBMS.PRESTO, DBMS.H2, DBMS.HSQLDB, DBMS.DERBY, DBMS.MONETDB, DBMS.VERTICA): # Note: cases with Unicode code points (e.g. http://www.postgresqltutorial.com/postgresql-ascii/)
|
||||
elif Backend.getIdentifiedDbms() in (DBMS.PGSQL, DBMS.ORACLE, DBMS.SQLITE, DBMS.DB2, DBMS.PRESTO, DBMS.H2, DBMS.HSQLDB, DBMS.DERBY, DBMS.MONETDB, DBMS.VERTICA, DBMS.SPANNER): # Note: cases with Unicode code points (e.g. http://www.postgresqltutorial.com/postgresql-ascii/); Spanner via TO_CODE_POINTS
|
||||
retVal = _unichr(value)
|
||||
else:
|
||||
retVal = getUnicode(raw, conf.encoding)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue