mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 14:00:31 +02:00
[ticket/14285] Use private cache-control for atttachments
PHPBB3-14285
This commit is contained in:
@@ -271,6 +271,16 @@ class attachment extends controller
|
||||
return parent::handle($attachment['physical_filename']);
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
protected function prepare($file)
|
||||
{
|
||||
parent::prepare($file);
|
||||
|
||||
$this->response->setPivate();
|
||||
}
|
||||
|
||||
/**
|
||||
* Handles authentication when downloading attachments from a post or topic
|
||||
*
|
||||
|
Reference in New Issue
Block a user