From 9796cd2063770a8562d58d6492fd6904cdeb4627 Mon Sep 17 00:00:00 2001
From: Aleksander Machniak <alec@alec.pl>
Date: Mon, 02 May 2016 12:01:18 -0400
Subject: [PATCH] Merge branch 'dev-rfc822-preview'

---
 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 b65fbef..9cb645e 100644
--- a/program/steps/mail/func.inc
+++ b/program/steps/mail/func.inc
@@ -1987,7 +1987,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