diff --git a/libraries/cms/component/helper.php b/libraries/cms/component/helper.php index f1f3159ab5a9e..f028a0700f965 100644 --- a/libraries/cms/component/helper.php +++ b/libraries/cms/component/helper.php @@ -251,7 +251,7 @@ public static function filterText($text) // Remove white listed attributes from filter's default blacklist if ($whiteListAttributes) { - $filter->attrBlacklist = array_diff($filter->attrBlacklist); + $filter->attrBlacklist = array_diff($filter->attrBlacklist, $whiteListAttributes); } } // White lists take third precedence.