From 08df33b5c25577cf42d7f524eeaa367cbde886fb Mon Sep 17 00:00:00 2001
From: Thomas Bruederli <thomas@roundcube.net>
Date: Mon, 15 Oct 2012 09:38:13 -0400
Subject: [PATCH] Partially revert 9546d22c6: don't validate with parse_charset()

---
 program/include/rcube_charset.php |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/program/include/rcube_charset.php b/program/include/rcube_charset.php
index 50ddc19..ff4c2bb 100644
--- a/program/include/rcube_charset.php
+++ b/program/include/rcube_charset.php
@@ -179,7 +179,7 @@
         static $mbstring_sch    = null;
         static $conv            = null;
 
-        $to   = empty($to) ? RCMAIL_CHARSET : self::parse_charset($to);
+        $to   = empty($to) ? RCMAIL_CHARSET : $to;
         $from = self::parse_charset($from);
 
         // It is a common case when UTF-16 charset is used with US-ASCII content (#1488654)

--
Gitblit v1.9.1