1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2024-10-26 12:25:09 +03:00

html: Fix bogus end tags

This commit is contained in:
Nick Wellnhofer 2024-09-09 02:53:14 +02:00
parent bca6485476
commit 24a09033c9

View File

@ -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);