1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-04-20 07:42:09 +02:00

[ticket/11271] Make path conversion more precise

PHPBB3-11271
This commit is contained in:
Dhruv 2013-12-27 03:31:28 +05:30
parent a71625ca76
commit 1aa27f400c

View File

@ -360,7 +360,7 @@ function feed_generate_content($content, $uid, $bitfield, $options, $forum_id, $
$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);
$content = str_replace($phpbb_root_path . 'download/file.' . $phpEx, $board_url . '/download/file.' . $phpEx, $content);
return $content;
}