mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-09 19:26:53 +02:00
Merge pull request #4438 from danchr/ticket/12133
[ticket/12133] fix download file names for WebKit-derived browsers
This commit is contained in:
@ -284,7 +284,7 @@ function header_filename($file)
|
|||||||
|
|
||||||
// There be dragons here.
|
// There be dragons here.
|
||||||
// Not many follows the RFC...
|
// Not many follows the RFC...
|
||||||
if (strpos($user_agent, 'MSIE') !== false || strpos($user_agent, 'Safari') !== false || strpos($user_agent, 'Konqueror') !== false)
|
if (strpos($user_agent, 'MSIE') !== false || strpos($user_agent, 'Konqueror') !== false)
|
||||||
{
|
{
|
||||||
return "filename=" . rawurlencode($file);
|
return "filename=" . rawurlencode($file);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user