mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-07 20:08:53 +00:00
[ticket/14285] Fix regular expression
PHPBB3-14285
This commit is contained in:
parent
c375f2c9e5
commit
f2914b2869
1 changed files with 1 additions and 1 deletions
|
@ -167,7 +167,7 @@ class helper
|
|||
$content .= implode('<br />', $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);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue