summaryrefslogtreecommitdiff
path: root/program/steps
diff options
context:
space:
mode:
authorThomas Bruederli <thomas@roundcube.net>2012-11-07 16:05:58 +0100
committerThomas Bruederli <thomas@roundcube.net>2012-11-07 16:05:58 +0100
commit2ad0a8d3f661046daa80d593c56a6a728a50a7f2 (patch)
treec3c0f9d9b8982f63733b89fd3fdd175f11b37f0d /program/steps
parent19b0d444e7c3a4262f21414f55d2d8ece0cf5786 (diff)
parent9ce2398ef9b7eff40fd8998516e452b920a7866f (diff)
Merge branch 'master' of github.com:roundcube/roundcubemail
Diffstat (limited to 'program/steps')
-rw-r--r--program/steps/mail/func.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/program/steps/mail/func.inc b/program/steps/mail/func.inc
index 9ad3a6e6f..10829d514 100644
--- a/program/steps/mail/func.inc
+++ b/program/steps/mail/func.inc
@@ -1247,7 +1247,7 @@ function rcmail_part_image_type($part)
if ($part->filename
&& preg_match('/^application\/octet-stream$/i', $part->mimetype)
- && preg_match('/\.([^.])$/i', $part->filename, $m)
+ && preg_match('/\.([^.]+)$/i', $part->filename, $m)
&& ($extension = strtolower($m[1]))
&& isset($types[$extension])
) {