diff options
author | Aleksander Machniak <alec@alec.pl> | 2014-07-22 19:10:42 +0200 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2014-07-22 19:10:42 +0200 |
commit | 6b0106a32446a125fd8a4ea7b9637c2378d52f72 (patch) | |
tree | 1fdb48496b0ced8f316b89023d09d48d7373e405 /program/include | |
parent | be6a095f83bea9d21002186de4dfdb6e934ddc3e (diff) |
Fix some mime-type to extension mapping checks in Installer (#1489983)
Diffstat (limited to 'program/include')
-rw-r--r-- | program/include/rcmail_install.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/program/include/rcmail_install.php b/program/include/rcmail_install.php index eec21ec7e..9945f1d81 100644 --- a/program/include/rcmail_install.php +++ b/program/include/rcmail_install.php @@ -476,7 +476,7 @@ class rcmail_install $types = array( 'application/zip' => 'zip', 'application/x-tar' => 'tar', - 'application/java-archive' => 'jar', + 'application/pdf' => 'pdf', 'image/gif' => 'gif', 'image/svg+xml' => 'svg', ); @@ -484,7 +484,7 @@ class rcmail_install $errors = array(); foreach ($types as $mimetype => $expected) { $ext = rcube_mime::get_mime_extensions($mimetype); - if ($ext[0] != $expected) { + if (!in_array($expected, (array) $ext)) { $errors[] = array($mimetype, $ext, $expected); } } |