Skip to content

Commit d2cd73a

Browse files
committed
Merge branch 'PHP-8.4' into PHP-8.5
* PHP-8.4: Fix GH-21041: Dom\HTMLDocument corrupts closing tags within scripts
2 parents d9ccf78 + 56e5a80 commit d2cd73a

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

NEWS

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ PHP NEWS
2626
- Date:
2727
. Update timelib to 2022.16. (Derick)
2828

29+
- DOM:
30+
. Fixed GH-21041 (Dom\HTMLDocument corrupts closing tags within scripts).
31+
(lexborisov)
32+
2933
- MbString:
3034
. Fixed bug GH-20833 (mb_str_pad() divide by zero if padding string is
3135
invalid in the encoding). (ndossche)

ext/lexbor/lexbor/html/tokenizer/state_script.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -364,6 +364,7 @@ lxb_html_tokenizer_state_script_data_end_tag_name(lxb_html_tokenizer_t *tkz,
364364
if (lexbor_str_res_alpha_character[*data]
365365
== LEXBOR_STR_RES_SLIP)
366366
{
367+
lxb_html_tokenizer_state_append_data_m(tkz, data);
367368
goto anything_else;
368369
}
369370

0 commit comments

Comments
 (0)