From 6ab8a7bd493e864d968af50fc5f02d1ff04f3f45 Mon Sep 17 00:00:00 2001 From: liwenrui Date: Fri, 31 May 2024 09:37:15 +0800 Subject: [PATCH] * remove buggy, weird and seemingly useless content filtering, bug #50346. --- lib/base/filter/filter.class.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/base/filter/filter.class.php b/lib/base/filter/filter.class.php index 3d2f1d27f3..c7c4baea46 100644 --- a/lib/base/filter/filter.class.php +++ b/lib/base/filter/filter.class.php @@ -1118,8 +1118,6 @@ class baseFixer * purifier会把 替换空格,kindeditor再会把行首的空格去掉。 * purifier will change   to ' ', and kindeditor will remove the header space again. **/ - $data = preg_replace('/<[^>]+[^<]+>/', '>', $data); if($usePurifier) $data = str_replace(' ', '&spnb;', $data); $data = $usePurifier ? $purifier->purify($data) : strip_tags($data, $allowedTags); if($usePurifier) $data = str_replace('&spnb;', ' ', $data);