ports/mail/squirrelmail/files/patch-functions__i18n.php
Thomas Abthorpe feea6b4060 - Update to 1.4.18
- Fix Subject/filename/non-ascii filename issue [1]

PR:		ports/133652 [1]
Submitted by:	Kazuo Dohzono <dohzono gmail.com> [1]
Security:	CVE-2009-1581 CVE-2009-1578 CVE-2009-1579 CVE-2009-1580
2009-05-20 16:21:01 +00:00

12 lines
650 B
PHP

--- ./functions/i18n.php.orig 2009-05-07 17:55:44.000000000 -0400
+++ ./functions/i18n.php 2009-05-19 23:27:43.000000000 -0400
@@ -640,7 +640,8 @@
$useragent = func_get_arg(2);
if (strstr($useragent, 'Windows') !== false ||
strstr($useragent, 'Mac_') !== false) {
- $ret = mb_convert_encoding($ret, 'SJIS', 'AUTO');
+ // $ret = mb_convert_encoding($ret, 'SJIS', 'AUTO'); // for Windows 9x clients
+ $ret = mb_convert_encoding($ret, 'UTF-8', 'AUTO'); // for Windows XP/Vista clients
} else {
$ret = mb_convert_encoding($ret, 'EUC-JP', 'AUTO');
}