diff options
author | Aleksander Machniak <alec@alec.pl> | 2012-05-28 15:19:43 +0200 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2012-05-28 15:19:43 +0200 |
commit | b9854b8cbecb21ada9ba4f25090d53f520ac6e9e (patch) | |
tree | 76c01c1b8fea47e47dda687e1f2ae5d93da40e50 /program/steps/mail | |
parent | 7c1231a94b2a3dddd74b17c7c66bc9d41bb55f47 (diff) |
Add Flash support detection
Diffstat (limited to 'program/steps/mail')
-rw-r--r-- | program/steps/mail/show.inc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/program/steps/mail/show.inc b/program/steps/mail/show.inc index bf1757699..7fcfafcaa 100644 --- a/program/steps/mail/show.inc +++ b/program/steps/mail/show.inc @@ -69,6 +69,9 @@ if ($uid = get_input_value('_uid', RCUBE_INPUT_GET)) { if (empty($_SESSION['browser_caps']['pdf']) && ($key = array_search('application/pdf', $mimetypes)) !== false) { unset($mimetypes[$key]); } + if (empty($_SESSION['browser_caps']['flash']) && ($key = array_search('application/x-shockwave-flash', $mimetypes)) !== false) { + unset($mimetypes[$key]); + } // @TODO: we could convert TIFF to JPEG and display it if (empty($_SESSION['browser_caps']['tif']) && ($key = array_search('image/tiff', $mimetypes)) !== false) { unset($mimetypes[$key]); |