mirror of
https://github.com/fankes/JSON-java-compat.git
synced 2025-09-06 10:45:23 +08:00
corrects EOL error when the Meta tag isn't closed properly and we reach
the end of the input.
This commit is contained in:
@@ -232,6 +232,7 @@ public class XMLTokener extends JSONTokener {
|
|||||||
}
|
}
|
||||||
switch (c) {
|
switch (c) {
|
||||||
case 0:
|
case 0:
|
||||||
|
throw syntaxError("Unterminated string");
|
||||||
case '<':
|
case '<':
|
||||||
case '>':
|
case '>':
|
||||||
case '/':
|
case '/':
|
||||||
|
Reference in New Issue
Block a user