Add missing charset parameter
authorMichael M Slusarz <slusarz@curecanti.org>
Wed, 28 Jul 2010 00:29:52 +0000 (18:29 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Wed, 28 Jul 2010 00:35:07 +0000 (18:35 -0600)
imp/lib/Compose.php

index 48dc42a..466e62c 100644 (file)
@@ -983,7 +983,7 @@ class IMP_Compose
             $old_error = error_reporting(0);
             $host = idn_to_ascii(Horde_String::convertCharset($host, $GLOBALS['registry']->getCharset(), 'UTF-8'));
             error_reporting($old_error);
-        } elseif (Horde_Mime::is8bit($ob['mailbox'])) {
+        } elseif (Horde_Mime::is8bit($ob['mailbox'], $GLOBALS['registry']->getCharset())) {
             throw new IMP_Compose_Exception(sprintf(_("Invalid character in e-mail address: %s."), $email));
         }