aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB
diff options
context:
space:
mode:
authorDhruv <dhruv.goel92@gmail.com>2013-09-15 20:40:32 +0530
committerDhruv <dhruv.goel92@gmail.com>2013-09-15 20:40:32 +0530
commite4977b714e77a6d1d7f1e5a10e5b0c5574658ba2 (patch)
tree7c98c42d4d2e99b1347e9b3661a308bc92ae5a31 /phpBB
parent1450d29aba7f5df94751838e8180750592dda217 (diff)
downloadforums-e4977b714e77a6d1d7f1e5a10e5b0c5574658ba2.tar
forums-e4977b714e77a6d1d7f1e5a10e5b0c5574658ba2.tar.gz
forums-e4977b714e77a6d1d7f1e5a10e5b0c5574658ba2.tar.bz2
forums-e4977b714e77a6d1d7f1e5a10e5b0c5574658ba2.tar.xz
forums-e4977b714e77a6d1d7f1e5a10e5b0c5574658ba2.zip
[ticket/11271] Use absolute path for displaying inline attachments in feeds
PHPBB3-11271
Diffstat (limited to 'phpBB')
-rw-r--r--phpBB/feed.php3
1 files changed, 3 insertions, 0 deletions
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;
}