Skip to content

Commit

Permalink
Checking that node has property name
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian Castelli committed Mar 1, 2024
1 parent 92da247 commit 428795c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions library/HTMLPurifier/ChildDef/Table.php
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,9 @@ public function validateChildren($children, $config, $context)
$current_tr_tbody = null;

foreach($content as $node) {
if (!isset($node->name)) {
continue;
}
switch ($node->name) {
case 'tbody':
$current_tr_tbody = null;
Expand Down

0 comments on commit 428795c

Please sign in to comment.