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:12:04 +0200 |
commit | 9cf50d16d40a829a09d8275cb6895c2dcd9b959d (patch) | |
tree | 5c7486c2ca43b856e6d46c0abcecd1fd921d2a85 /installer/rcube_install.php | |
parent | ae502b364d08e3bd2001b22caa14f18962a738d6 (diff) |
Fix some mime-type to extension mapping checks in Installer (#1489983)
Conflicts:
CHANGELOG
Diffstat (limited to 'installer/rcube_install.php')
-rw-r--r-- | installer/rcube_install.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/installer/rcube_install.php b/installer/rcube_install.php index ef7000688..85688d171 100644 --- a/installer/rcube_install.php +++ b/installer/rcube_install.php @@ -490,7 +490,7 @@ class rcube_install $types = array( 'application/zip' => 'zip', 'application/x-tar' => 'tar', - 'application/java-archive' => 'jar', + 'application/pdf' => 'pdf', 'image/gif' => 'gif', 'image/svg+xml' => 'svg', ); @@ -498,7 +498,7 @@ class rcube_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); } } |