From c24bfe1d861d311900e17135dc92988544a95a8e Mon Sep 17 00:00:00 2001 From: "yuliang.lyl" Date: Wed, 24 Jun 2015 10:20:34 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=97=E8=A1=A8=E9=A1=B5=E4=B8=8D=E8=BF=87?= =?UTF-8?q?=E6=BB=A4=E8=A1=A8=E6=83=85=E6=A0=87=E7=AD=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- upload/src/library/Pw.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/upload/src/library/Pw.php b/upload/src/library/Pw.php index 5854e99..0b2a839 100644 --- a/upload/src/library/Pw.php +++ b/upload/src/library/Pw.php @@ -539,8 +539,8 @@ public static function formatContent($content){ $content = preg_replace('/\[post\].+?\[\/post\]/i','[含有隐藏内容]',$content); $content = preg_replace('/\[sell.*?\].+?\[\/sell\]/i','[含有售卖内容]',$content); $content = preg_replace('/\][^\[]+\[\/(tao|share|flash|mp3|img)/i', '][', $content); - $content = preg_replace('/\[s:.+?\]/i','[表情]',$content); - $content = preg_replace('/\[[^\]]*\]/i',' ', strip_tags($content)); +// $content = preg_replace('/\[s:.+?\]/i','[表情]',$content); + $content = preg_replace('/\[(?!s:)[^\]]*\]/i',' ', strip_tags($content));//不过滤表情标签 ///$content = str_replace(array('[视频]','[音乐]','[附件]'),array('','',''),trim(Wekit::load('forum.srv.PwThreadService')->displayContent($content,1,array(),strlen($content)),'.')); //过滤ubb标签 return array("share"=>$share,"content"=>$content);