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:
2
mail.php
2
mail.php
@@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user