Skip to content

Commit

Permalink
Merge branch 'PHP-8.4'
Browse files Browse the repository at this point in the history
* PHP-8.4:
  Cherry-pick lexbor/lexbor@58c88147
  • Loading branch information
nielsdos committed Jan 16, 2025
2 parents ac2ce94 + ac266c9 commit a4fa1e7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ext/dom/lexbor/lexbor/html/tokenizer/state.c
Original file line number Diff line number Diff line change
Expand Up @@ -2106,7 +2106,11 @@ lxb_html_tokenizer_state_char_ref_numeric_end(lxb_html_tokenizer_t *tkz,
break;
}

if (tkz->entity_number <= 0x1F
if ((tkz->entity_number <= 0x1F
&& tkz->entity_number != 0x09 /* TAB */
&& tkz->entity_number != 0x0A /* LINE FEED (LF) */
&& tkz->entity_number != 0x0C /* FORM FEED (FF) */
&& tkz->entity_number != 0x20) /* SPACE */
|| (tkz->entity_number >= 0x7F && tkz->entity_number <= 0x9F))
{
lxb_html_tokenizer_error_add(tkz->parse_errors, tkz->markup,
Expand Down

0 comments on commit a4fa1e7

Please sign in to comment.