mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-10-21 14:53:44 +03:00
html: Fix check for partial named character references
Digits are allowed after the first character.
This commit is contained in:
@@ -3229,7 +3229,9 @@ htmlParseCharData(htmlParserCtxtPtr ctxt, int partial) {
|
||||
* ∳ has 33 bytes.
|
||||
*/
|
||||
for (i = 1; i < avail; i++) {
|
||||
if ((i >= 32) || !IS_ASCII_LETTER(in[i])) {
|
||||
if ((i >= 32) ||
|
||||
(!IS_ASCII_LETTER(in[i]) &&
|
||||
((i < 2) || !IS_ASCII_DIGIT(in[i])))) {
|
||||
terminated = 1;
|
||||
break;
|
||||
}
|
||||
|
Reference in New Issue
Block a user