mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-27 03:50:22 +02:00
Merge remote-tracking branch 'bantu/ticket/10633' into develop-olympus
* bantu/ticket/10633: [ticket/10633] Stop leaking filename of attachments when thumbnail is requested
This commit is contained in:
@@ -424,7 +424,7 @@ function send_file_to_browser($attachment, $upload_dir, $category)
|
|||||||
if (!@file_exists($filename))
|
if (!@file_exists($filename))
|
||||||
{
|
{
|
||||||
send_status_line(404, 'Not Found');
|
send_status_line(404, 'Not Found');
|
||||||
trigger_error($user->lang['ERROR_NO_ATTACHMENT'] . '<br /><br />' . sprintf($user->lang['FILE_NOT_FOUND_404'], $filename));
|
trigger_error('ERROR_NO_ATTACHMENT');
|
||||||
}
|
}
|
||||||
|
|
||||||
// Correct the mime type - we force application/octetstream for all files, except images
|
// Correct the mime type - we force application/octetstream for all files, except images
|
||||||
|
Reference in New Issue
Block a user