diff --git a/phpBB/phpbb/feed/helper.php b/phpBB/phpbb/feed/helper.php index 4227e0c15d..8261027eb0 100644 --- a/phpBB/phpbb/feed/helper.php +++ b/phpBB/phpbb/feed/helper.php @@ -167,7 +167,7 @@ class helper $content .= implode('
', $post_attachments); // Convert attachments' relative path to absolute path - $pattern = '#(/app.php)/?download/attachment/#'; + $pattern = '#(/app.php)?/download/attachment/#'; $replacement = $this->get_board_url() . '\1/download/attachment/'; $content = preg_replace($pattern, $replacement, $content); }