0
0
mirror of https://github.com/ezyang/htmlpurifier.git synced 2025-01-02 21:01:52 +00:00

Update Config.php (#211)

Fixed Undefined index: class
This commit is contained in:
DiLong Fa 2019-07-15 00:11:34 +07:00 committed by Edward Z. Yang
parent 5a90c92d83
commit 524cd08a59

View File

@ -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];