Skip to content

Commit

Permalink
列表页不过滤表情标签
Browse files Browse the repository at this point in the history
  • Loading branch information
mousepad942 committed Jun 24, 2015
1 parent 800b4f0 commit c24bfe1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions upload/src/library/Pw.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit c24bfe1

Please sign in to comment.