0
0
mirror of https://github.com/ezyang/htmlpurifier.git synced 2024-09-18 18:25:18 +00: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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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;