1
0
mirror of https://github.com/ezyang/htmlpurifier.git synced 2025-07-09 08:52:34 +02:00

fix: checking that node has property name (#399)

Co-authored-by: Christian Castelli <christian.castelli@docebo.com>
This commit is contained in:
Christian Castelli
2024-03-05 16:58:42 +01:00
committed by GitHub
parent 92da2473ff
commit 9ca5a3687b

View File

@ -190,6 +190,9 @@ class HTMLPurifier_ChildDef_Table extends HTMLPurifier_ChildDef
$current_tr_tbody = null;
foreach($content as $node) {
if (!isset($node->name)) {
continue;
}
switch ($node->name) {
case 'tbody':
$current_tr_tbody = null;