Really fix unwanted warning on BMP attachments (#1490269)

pull/280/head
Aleksander Machniak 9 years ago
parent 825b2b9ab9
commit c8468c2960

@ -164,7 +164,7 @@ else if (strlen($part_id)) {
else {
// get valid file extensions
$extensions = rcube_mime::get_mime_extensions($real_mimetype);
$valid_extension = !$file_extension || in_array($file_extension, (array)$extensions);
$valid_extension = !$file_extension || empty($extensions) || in_array($file_extension, (array)$extensions);
}
// fix mimetype for images wrongly declared as octet-stream

Loading…
Cancel
Save