mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-07-08 23:22:04 +03: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