mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 14:00:31 +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(
|
||||
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']))
|
||||
);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user