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:
parent
2a6af29235
commit
328e7d8944
1 changed files with 1 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue