From 5a6ea32f8efc58be776939a4bd5701667da1af74 Mon Sep 17 00:00:00 2001 From: liyuchun <563917701@qq.com> Date: Thu, 28 Apr 2022 09:09:08 +0000 Subject: [PATCH] * Fix error. --- lib/filter/filter.class.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/filter/filter.class.php b/lib/filter/filter.class.php index f4e9980630..2f44b2df3a 100644 --- a/lib/filter/filter.class.php +++ b/lib/filter/filter.class.php @@ -101,6 +101,11 @@ class fixer extends baseFixer * @return object */ public function filterEmoji($value){ + if(is_object($value) or is_array($value)) + { + foreach($value as $subValue) $this->filterEmoji($subValue); + } + $value = preg_replace_callback('/./u', function (array $match) { return strlen($match[0]) >= 4 ? '' : $match[0];