From bf13ba996ca5e33c8d1bfd88ed92d1c06b0a24c8 Mon Sep 17 00:00:00 2001
From: alecpl <alec@alec.pl>
Date: Thu, 04 Nov 2010 08:42:22 -0400
Subject: [PATCH] - remove charset=binary from content-type

---
 program/include/rcube_shared.inc |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/program/include/rcube_shared.inc b/program/include/rcube_shared.inc
index fb4a959..b79ab36 100644
--- a/program/include/rcube_shared.inc
+++ b/program/include/rcube_shared.inc
@@ -476,6 +476,11 @@
     if (!$mime_type) {
         $mime_type = $failover;
     }
+    else {
+        // sometimes content-type contains charset definition,
+        // remove useless "charset=binary", should we remove any charset def. here?
+        $mime_type = preg_replace('/; charset=binary;*/i', '', $mime_type);
+    }
 
     return $mime_type;
 }

--
Gitblit v1.9.1