diff options
author | Aleksander Machniak <alec@alec.pl> | 2012-11-07 11:55:12 +0100 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2012-11-07 11:55:12 +0100 |
commit | 9ce2398ef9b7eff40fd8998516e452b920a7866f (patch) | |
tree | 70923386899c34600d5df321a216a58bb660c05c /program | |
parent | ea547c232e1a1953feb52910bcd1f4cbcd57b4de (diff) |
Fix regression in detecting if attachment should be displayed inline (is an image)
Diffstat (limited to 'program')
-rw-r--r-- | program/steps/mail/func.inc | 2 |
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]) ) { |