mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
[ticket/14285] Fix filenames when downloading from controller
PHPBB3-14285
This commit is contained in:
parent
26b7180874
commit
b1b29cd692
1 changed files with 59 additions and 59 deletions
|
@ -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']))
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue