From dc37f3a0e352a13ba029b45643d1babacc6aa477 Mon Sep 17 00:00:00 2001 From: Dhruv Date: Sun, 15 Sep 2013 20:40:32 +0530 Subject: [PATCH] [ticket/11271] Use absolute path for displaying inline attachments in feeds PHPBB3-11271 --- phpBB/feed.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/phpBB/feed.php b/phpBB/feed.php index d19aa48f17..64850c0109 100644 --- a/phpBB/feed.php +++ b/phpBB/feed.php @@ -352,6 +352,9 @@ function feed_generate_content($content, $uid, $bitfield, $options, $forum_id, $ // Other control characters $content = preg_replace('#(?:[\x00-\x1F\x7F]+|(?:\xC2[\x80-\x9F])+)#', '', $content); + // Convert attachments' relative path to absolute path + $content = str_replace($phpbb_root_path . 'download', $board_url . '/download', $content); + return $content; }