mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-02 14:57:37 +02:00
[ticket/14285] Fix filenames when downloading from controller
PHPBB3-14285
This commit is contained in:
@@ -244,14 +244,14 @@ class attachment extends controller
|
|||||||
{
|
{
|
||||||
$disposition = $this->response->headers->makeDisposition(
|
$disposition = $this->response->headers->makeDisposition(
|
||||||
ResponseHeaderBag::DISPOSITION_INLINE,
|
ResponseHeaderBag::DISPOSITION_INLINE,
|
||||||
rawurlencode($attachment['physical_filename'])
|
rawurlencode(htmlspecialchars_decode($attachment['real_filename']))
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$disposition = $this->response->headers->makeDisposition(
|
$disposition = $this->response->headers->makeDisposition(
|
||||||
ResponseHeaderBag::DISPOSITION_ATTACHMENT,
|
ResponseHeaderBag::DISPOSITION_ATTACHMENT,
|
||||||
rawurlencode($attachment['physical_filename'])
|
rawurlencode(htmlspecialchars_decode($attachment['real_filename']))
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user