mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2025-01-18 11:41:52 +00:00
fix: checking that node has property name (#399)
Co-authored-by: Christian Castelli <christian.castelli@docebo.com>
This commit is contained in:
parent
92da2473ff
commit
9ca5a3687b
@ -190,6 +190,9 @@ class HTMLPurifier_ChildDef_Table extends HTMLPurifier_ChildDef
|
|||||||
$current_tr_tbody = null;
|
$current_tr_tbody = null;
|
||||||
|
|
||||||
foreach($content as $node) {
|
foreach($content as $node) {
|
||||||
|
if (!isset($node->name)) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
switch ($node->name) {
|
switch ($node->name) {
|
||||||
case 'tbody':
|
case 'tbody':
|
||||||
$current_tr_tbody = null;
|
$current_tr_tbody = null;
|
||||||
|
Loading…
Reference in New Issue
Block a user