mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-03 23:37:39 +02:00
[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:
@@ -343,7 +343,7 @@ function feed_generate_content($content, $uid, $bitfield, $options, $forum_id, $
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Remove Comments from inline attachments [ia]
|
// 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
|
// Replace some entities with their unicode counterpart
|
||||||
$entities = array(
|
$entities = array(
|
||||||
|
Reference in New Issue
Block a user