mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
[ticket/11271] Use absolute path for displaying inline attachments in feeds
PHPBB3-11271
This commit is contained in:
parent
62263c13d4
commit
dc37f3a0e3
1 changed files with 3 additions and 0 deletions
|
@ -352,6 +352,9 @@ function feed_generate_content($content, $uid, $bitfield, $options, $forum_id, $
|
||||||
// Other control characters
|
// Other control characters
|
||||||
$content = preg_replace('#(?:[\x00-\x1F\x7F]+|(?:\xC2[\x80-\x9F])+)#', '', $content);
|
$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;
|
return $content;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue