mirror of
https://github.com/stleary/JSON-java.git
synced 2025-08-03 03:15:32 -04:00
fixes #537 corrects case-sensitive entity unescape
This commit is contained in:
parent
e0a6c2ef34
commit
e18f42becc
@ -167,7 +167,7 @@ public class XMLTokener extends JSONTokener {
|
|||||||
// if our entity is an encoded unicode point, parse it.
|
// if our entity is an encoded unicode point, parse it.
|
||||||
if (e.charAt(0) == '#') {
|
if (e.charAt(0) == '#') {
|
||||||
int cp;
|
int cp;
|
||||||
if (e.charAt(1) == 'x') {
|
if (e.charAt(1) == 'x' || e.charAt(1) == 'X') {
|
||||||
// hex encoded unicode
|
// hex encoded unicode
|
||||||
cp = Integer.parseInt(e.substring(2), 16);
|
cp = Integer.parseInt(e.substring(2), 16);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user