diff options
author | erangamapa <erangamapa@gmail.com> | 2013-03-14 01:38:24 +0530 |
---|---|---|
committer | Dhruv <dhruv.goel92@gmail.com> | 2013-12-27 00:22:19 +0530 |
commit | a41e2ca380d0d4a142229f1655db4d429f109e50 (patch) | |
tree | 81a059a4de22e1ee8fadaac2e54d26bd0f76d28b /phpBB | |
parent | 5bf472619537c29f381d91ae564324562ef1f022 (diff) | |
download | forums-a41e2ca380d0d4a142229f1655db4d429f109e50.tar forums-a41e2ca380d0d4a142229f1655db4d429f109e50.tar.gz forums-a41e2ca380d0d4a142229f1655db4d429f109e50.tar.bz2 forums-a41e2ca380d0d4a142229f1655db4d429f109e50.tar.xz forums-a41e2ca380d0d4a142229f1655db4d429f109e50.zip |
[ticket/11271] Removed in-line attachment comments properly.
Added a new regex to remove in-line attachment comments.
PHPBB3-11271
Diffstat (limited to 'phpBB')
-rw-r--r-- | phpBB/feed.php | 2 |
1 files changed, 1 insertions, 1 deletions
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('#<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( |