]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Handle UTF-8 encoded text in emails.
authorCraig Andrews <candrews@integralblue.com>
Wed, 29 Jul 2009 02:22:07 +0000 (22:22 -0400)
committerCraig Andrews <candrews@integralblue.com>
Wed, 29 Jul 2009 02:22:07 +0000 (22:22 -0400)
Thanks to jaakko for pointing this out! http://identi.ca/notice/7169471

scripts/maildaemon.php

index a4003b6b26b5018748b51eab4ea8310410516114..9b3628b8631d8b3586349a31281b63fdddb5ad38 100755 (executable)
@@ -301,7 +301,7 @@ class MailerDaemon
 
         $this->extract_part($parsed,$msg,$attachments);
 
-        return array($from, $to, $msg, $attachments);
+        return array($from, $to, utf8_encode($msg), $attachments);
     }
 
     function extract_part($parsed,&$msg,&$attachments){