1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 14:00:31 +02:00

[ticket/15687] Add attachment filename to attachment URL

This will also fix the invalid requirements for the file parameter of the URL.

PHPBB3-15687
This commit is contained in:
Marc Alexander
2023-06-27 21:00:16 +02:00
parent d73b60781e
commit df6ab1a811
7 changed files with 68 additions and 11 deletions

View File

@@ -185,7 +185,13 @@ class ucp_attachments
'S_IN_MESSAGE' => $row['in_message'],
'S_LOCKED' => !$row['in_message'] && !$auth->acl_get('m_edit', $row['forum_id']) && ($row['forum_status'] == ITEM_LOCKED || $row['topic_status'] == ITEM_LOCKED || $row['post_edit_locked']),
'U_VIEW_ATTACHMENT' => $controller_helper->route('phpbb_storage_attachment', ['file' => (int) $row['attach_id']]),
'U_VIEW_ATTACHMENT' => $controller_helper->route(
'phpbb_storage_attachment',
[
'file' => (int) $row['attach_id'],
'filename' => $row['real_filename'],
]
),
'U_VIEW_TOPIC' => $view_topic)
);