mirror of
https://git.freebsd.org/ports.git
synced 2025-07-08 21:09:17 -04:00
- 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
12 lines
650 B
PHP
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');
|
|
}
|