mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-13 12:14:06 +02:00
[ticket/14285] Remove support for old browsers
PHPBB3-14285
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
@@ -66,7 +66,7 @@ class avatar extends controller
|
||||
{
|
||||
if (!headers_sent())
|
||||
{
|
||||
header('Content-Disposition: inline; ' . header_filename($file));
|
||||
header("Content-Disposition: inline; filename*=UTF-8''" . rawurlencode($file));
|
||||
|
||||
header('Expires: ' . gmdate('D, d M Y H:i:s', time() + 3600*24*365) . ' GMT');
|
||||
}
|
||||
|
Reference in New Issue
Block a user