From a41e2ca380d0d4a142229f1655db4d429f109e50 Mon Sep 17 00:00:00 2001 From: erangamapa Date: Thu, 14 Mar 2013 01:38:24 +0530 Subject: [PATCH] [ticket/11271] Removed in-line attachment comments properly. Added a new regex to remove in-line attachment comments. PHPBB3-11271 --- phpBB/feed.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpBB/feed.php b/phpBB/feed.php index 9f0f0b2294..5a42ca6c37 100644 --- a/phpBB/feed.php +++ b/phpBB/feed.php @@ -343,7 +343,7 @@ function feed_generate_content($content, $uid, $bitfield, $options, $forum_id, $ } // Remove Comments from inline attachments [ia] - $content = preg_replace('#
(.*?)(.*?)(.*?)
#si','$4',$content); + $content = preg_replace('#
(.*?)
#','',$content); // Replace some entities with their unicode counterpart $entities = array(