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