mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 22:28:51 +00:00
[ticket/10820] fix if condition to check for IE
PHPBB3-10820
This commit is contained in:
parent
48f764437f
commit
de150cb4ad
1 changed files with 1 additions and 1 deletions
|
@ -491,7 +491,7 @@ function send_file_to_browser($attachment, $upload_dir, $category)
|
|||
}
|
||||
else
|
||||
{
|
||||
if (empty($user->browser) || !phpbb_is_greater_ie_version($user->browser, 7))
|
||||
if (empty($user->browser) || ((strpos(strtolower($user->browser), 'msie') !== false) && !phpbb_is_greater_ie_version($user->browser, 7)))
|
||||
{
|
||||
header('Content-Disposition: attachment; ' . header_filename(htmlspecialchars_decode($attachment['real_filename'])));
|
||||
if (empty($user->browser) || (strpos(strtolower($user->browser), 'msie 6.0') !== false))
|
||||
|
|
Loading…
Add table
Reference in a new issue