From 323fa20bc89edcd683bef1a170445f681305fc5c Mon Sep 17 00:00:00 2001
From: Aleksander Machniak <alec@alec.pl>
Date: Wed, 23 Mar 2016 11:54:31 -0400
Subject: [PATCH] Message/rfc822 attachment preview (#5054)

---
 program/steps/mail/func.inc |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/program/steps/mail/func.inc b/program/steps/mail/func.inc
index 963e696..cb01f94 100644
--- a/program/steps/mail/func.inc
+++ b/program/steps/mail/func.inc
@@ -1985,7 +1985,9 @@
         'image/x-ms-bmp' => 'image/bmp', // #1490282
     );
 
-    if ($alias = $map[strtolower($name)]) {
+    $name = strtolower($name);
+
+    if ($alias = $map[$name]) {
         $name = $alias;
     }
     // Some versions of Outlook create garbage Content-Type:

--
Gitblit v1.9.1