1
0
Fork 0
mirror of https://github.com/ethauvin/JSON-java.git synced 2025-06-17 07:50:52 -07: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:
John J. Aylward 2019-09-17 10:33:26 -04:00
parent 2a6af29235
commit 328e7d8944

View file

@ -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 '/':