Aleksander Machniak
2012-11-07 9ce2398ef9b7eff40fd8998516e452b920a7866f
Fix regression in detecting if attachment should be displayed inline (is an image)
1 files modified
2 ■■■ changed files
program/steps/mail/func.inc 2 ●●● patch | view | raw | blame | history
program/steps/mail/func.inc
@@ -1247,7 +1247,7 @@
  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])
  ) {