From 0b2d566c9fecde521512ff4390b27d9c0ed2a96d Mon Sep 17 00:00:00 2001 From: Dominique Fournier Date: Sat, 20 May 2017 19:09:41 +0000 Subject: [PATCH] mail: convert the headers to UTF-8 if the mime encoding is set git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@3711 bf3deb0d-5f1a-0410-827f-c0cc1f45334c --- mail.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mail.php b/mail.php index bdff951..3f35620 100644 --- a/mail.php +++ b/mail.php @@ -1430,7 +1430,7 @@ class mail */ private function decodeHeaders ($header, $content) { - return substr (iconv_mime_decode ("$header: $content"), + return substr (iconv_mime_decode ("$header: $content", 0, "utf-8"), strlen ($header)+2); }