X-Git-Url: http://aleph1.co.uk/gitweb/?a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Ffilter%2Ftests%2Ffilter_test%2Fsrc%2FPlugin%2FFilter%2FFilterTestRestrictTagsAndAttributes.php;h=c6f62009cdc48df05225f0ac7cb836e28aab75cc;hb=0bf8d09d2542548982e81a441b1f16e75873a04f;hp=352506ea571196c57f542ddfc1a67a7e7477e8e5;hpb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;p=yaffs-website diff --git a/web/core/modules/filter/tests/filter_test/src/Plugin/Filter/FilterTestRestrictTagsAndAttributes.php b/web/core/modules/filter/tests/filter_test/src/Plugin/Filter/FilterTestRestrictTagsAndAttributes.php index 352506ea5..c6f62009c 100644 --- a/web/core/modules/filter/tests/filter_test/src/Plugin/Filter/FilterTestRestrictTagsAndAttributes.php +++ b/web/core/modules/filter/tests/filter_test/src/Plugin/Filter/FilterTestRestrictTagsAndAttributes.php @@ -22,7 +22,7 @@ class FilterTestRestrictTagsAndAttributes extends FilterBase { * {@inheritdoc} */ public function process($text, $langcode) { - $allowed_tags = array_filter($this->settings['restrictions']['allowed'], function($value) { + $allowed_tags = array_filter($this->settings['restrictions']['allowed'], function ($value) { return is_array($value) || (bool) $value !== FALSE; }); return new FilterProcessResult(Xss::filter($text, array_keys($allowed_tags)));