Skip to content

Commit

Permalink
Merge branch 'master' of github.com:roundcube/roundcubemail
Browse files Browse the repository at this point in the history
  • Loading branch information
alecpl committed Feb 20, 2015
2 parents 3f308bf + 45256e8 commit 3ab1b1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion program/steps/mail/get.inc
Expand Up @@ -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
Expand Down

0 comments on commit 3ab1b1a

Please sign in to comment.