[ticket/11271] Removed in-line attachment comments properly.

Added a new regex to remove in-line attachment comments.

PHPBB3-11271
This commit is contained in:
erangamapa 2013-03-14 01:38:24 +05:30 committed by Dhruv
parent 5bf4726195
commit a41e2ca380

View file

@ -343,7 +343,7 @@ function feed_generate_content($content, $uid, $bitfield, $options, $forum_id, $
}
// Remove Comments from inline attachments [ia]
$content = preg_replace('#<div class="(inline-attachment|attachtitle)">(.*?)<!-- ia(.*?) -->(.*?)<!-- ia(.*?) -->(.*?)</div>#si','$4',$content);
$content = preg_replace('#<dd>(.*?)</dd>#','',$content);
// Replace some entities with their unicode counterpart
$entities = array(