[ticket/14285] Fix filenames when downloading from controller

PHPBB3-14285
This commit is contained in:
Rubén Calvo 2018-08-20 17:14:07 +02:00 committed by rubencm
parent 26b7180874
commit b1b29cd692

View file

@ -244,14 +244,14 @@ class attachment extends controller
{
$disposition = $this->response->headers->makeDisposition(
ResponseHeaderBag::DISPOSITION_INLINE,
rawurlencode($attachment['physical_filename'])
rawurlencode(htmlspecialchars_decode($attachment['real_filename']))
);
}
else
{
$disposition = $this->response->headers->makeDisposition(
ResponseHeaderBag::DISPOSITION_ATTACHMENT,
rawurlencode($attachment['physical_filename'])
rawurlencode(htmlspecialchars_decode($attachment['real_filename']))
);
}