mirror of
https://github.com/GNOME/libxml2.git
synced 2025-10-18 09:41:21 +08:00
html: Fix bogus end tags
This commit is contained in:
@@ -3877,6 +3877,11 @@ htmlParseEndTag(htmlParserCtxtPtr ctxt)
|
||||
}
|
||||
SKIP(2);
|
||||
|
||||
if (!IS_ASCII_LETTER(CUR)) {
|
||||
htmlParseComment(ctxt, /* bogus */ 1);
|
||||
return(0);
|
||||
}
|
||||
|
||||
name = htmlParseHTMLName(ctxt, 0);
|
||||
if (name == NULL)
|
||||
return (0);
|
||||
|
Reference in New Issue
Block a user