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

[ticket/14285] Use private cache-control for atttachments

PHPBB3-14285
This commit is contained in:
rubencm
2019-05-28 02:41:08 +00:00
parent 6f731f0a3e
commit b1495bd54a

View File

@@ -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
*