Skip to content

Commit 328e7d8

Browse files
author
John J. Aylward
committed
corrects EOL error when the Meta tag isn't closed properly and we reach
the end of the input.
1 parent 2a6af29 commit 328e7d8

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

XMLTokener.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,7 @@ public Object nextMeta() throws JSONException {
232232
}
233233
switch (c) {
234234
case 0:
235+
throw syntaxError("Unterminated string");
235236
case '<':
236237
case '>':
237238
case '/':

0 commit comments

Comments
 (0)