mirror of
https://github.com/stleary/JSON-java.git
synced 2025-08-03 11:25:30 -04: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:
parent
2a6af29235
commit
328e7d8944
@ -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 '/':
|
||||||
|
Loading…
x
Reference in New Issue
Block a user