From 524cd08a595b721320756768d00a518c5818e510 Mon Sep 17 00:00:00 2001 From: DiLong Fa <3159576+dilongfa@users.noreply.github.com> Date: Mon, 15 Jul 2019 00:11:34 +0700 Subject: [PATCH] Update Config.php (#211) Fixed Undefined index: class --- library/HTMLPurifier/Config.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/HTMLPurifier/Config.php b/library/HTMLPurifier/Config.php index f37cf371..f34a5361 100644 --- a/library/HTMLPurifier/Config.php +++ b/library/HTMLPurifier/Config.php @@ -890,7 +890,7 @@ class HTMLPurifier_Config // zip(tail(trace), trace) -- but PHP is not Haskell har har for ($i = 0, $c = count($trace); $i < $c - 1; $i++) { // XXX this is not correct on some versions of HTML Purifier - if ($trace[$i + 1]['class'] === 'HTMLPurifier_Config') { + if (isset($trace[$i + 1]['class']) && $trace[$i + 1]['class'] === 'HTMLPurifier_Config') { continue; } $frame = $trace[$i];