mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00: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:
parent
5bf4726195
commit
a41e2ca380
1 changed files with 1 additions and 1 deletions
|
@ -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(
|
||||||
|
|
Loading…
Add table
Reference in a new issue