From 9d7e33c331224c33e95a34a49e6f80ac5a146980 Mon Sep 17 00:00:00 2001 From: e107steved Date: Sun, 1 Nov 2009 20:21:22 +0000 Subject: [PATCH] Bugtracker #4818 - just remove bbcodes from comments, not the enclosed text --- e107_handlers/comment_class.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/e107_handlers/comment_class.php b/e107_handlers/comment_class.php index 5b72f7502..cdf335807 100644 --- a/e107_handlers/comment_class.php +++ b/e107_handlers/comment_class.php @@ -11,9 +11,9 @@ | GNU General Public License (http://gnu.org). | | $Source: /cvs_backup/e107_0.8/e107_handlers/comment_class.php,v $ - | $Revision: 1.29 $ - | $Date: 2009-10-22 04:14:35 $ - | $Author: e107coders $ + | $Revision: 1.30 $ + | $Date: 2009-11-01 20:21:13 $ + | $Author: e107steved $ +----------------------------------------------------------------------------+ */ if (!defined('e107_INIT')) @@ -874,7 +874,7 @@ class comment $comment_author_name = $row['comment_author_name']; $ret['comment_author'] = (USERID ? "".$comment_author_name."" : $comment_author_name); //comment text - $comment = strip_tags(preg_replace("/\[.*\]/", "", $row['comment_comment'])); // remove bbcode + $comment = strip_tags(preg_replace("/\[.*?\]/", "", $row['comment_comment'])); // remove bbcode - but leave text in between $ret['comment_comment'] = $tp->toHTML($comment, FALSE, "", "", $pref['main_wordwrap']); //subject $ret['comment_subject'] = $tp->toHTML($row['comment_subject'], TRUE);