1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-19 15:01:33 +02:00

[ticket/14285] Remove support for old browsers

PHPBB3-14285
This commit is contained in:
Rubén Calvo
2018-06-30 04:04:19 +02:00
committed by rubencm
parent 2f043cdb61
commit 0b136a6231
3 changed files with 2 additions and 22 deletions

View File

@@ -313,7 +313,7 @@ class attachment extends controller
}
else
{
header('Content-Disposition: ' . ((strpos($attachment['mimetype'], 'image') === 0) ? 'inline' : 'attachment') . '; ' . header_filename(htmlspecialchars_decode($attachment['real_filename'])));
header('Content-Disposition: ' . ((strpos($attachment['mimetype'], 'image') === 0) ? 'inline' : 'attachment') . "; filename*=UTF-8''" . rawurlencode(htmlspecialchars_decode($attachment['real_filename'])));
if (strpos($attachment['mimetype'], 'image') !== 0)
{