From eda23fe6c8ccb91e741db61f6c79e40dbc106cf0 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Thu, 4 Aug 2016 08:57:48 +0200 Subject: [PATCH] Remove hacks for old Internet Explorer versions --- plugins/managesieve/managesieve.js | 2 +- program/steps/mail/get.inc | 11 +---------- skins/classic/functions.js | 17 +++++------------ skins/classic/splitter.js | 4 ++-- skins/larry/ui.js | 4 ++-- 5 files changed, 11 insertions(+), 27 deletions(-) diff --git a/plugins/managesieve/managesieve.js b/plugins/managesieve/managesieve.js index 6cb5b3865..a1cb022fc 100644 --- a/plugins/managesieve/managesieve.js +++ b/plugins/managesieve/managesieve.js @@ -1056,7 +1056,7 @@ rcube_webmail.prototype.managesieve_create = function(force) dialog.dialog({ modal: false, resizable: true, - closeOnEscape: !bw.ie7, // disable for performance reasons + closeOnEscape: true, title: this.get_label('managesieve.newfilter'), close: function() { rcmail.managesieve_dialog_close(); }, buttons: buttons, diff --git a/program/steps/mail/get.inc b/program/steps/mail/get.inc index 202ae34fb..c3c4b7ba8 100644 --- a/program/steps/mail/get.inc +++ b/program/steps/mail/get.inc @@ -271,13 +271,6 @@ if (empty($_GET['_thumb']) && $attachment->is_valid()) { $filename = $browser->ie ? rawurlencode($filename) : addcslashes($filename, '"'); $disposition = !empty($_GET['_download']) ? 'attachment' : 'inline'; - // Workaround for nasty IE bug (#1488844) - // If Content-Disposition header contains string "attachment" e.g. in filename - // IE handles data as attachment not inline - if ($disposition == 'inline' && $browser->ie && $browser->ver < 9) { - $filename = str_ireplace('attachment', 'attach', $filename); - } - // add filename extension if missing if (!pathinfo($filename, PATHINFO_EXTENSION) && ($extensions = rcube_mime::get_mime_extensions($mimetype))) { $filename .= '.' . $extensions[0]; @@ -583,9 +576,7 @@ class rcmail_attachment_handler return false; } - $rcube = rcube::get_instance(); - $browser = $rcube->output->browser; - $secure = stripos($mimetype, 'image/') === false || $this->download; + $secure = stripos($mimetype, 'image/') === false || $this->download; // Remove