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
This commit is contained in:
2017-05-20 19:09:41 +00:00
parent 8658bd8a86
commit 0b2d566c9f

View File

@@ -1430,7 +1430,7 @@ class mail
*/ */
private function decodeHeaders ($header, $content) 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); strlen ($header)+2);
} }