mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-08-04 02:08:49 -04:00
19 lines
830 B
Plaintext
19 lines
830 B
Plaintext
$NetBSD: patch-ai,v 1.2 2010/03/07 03:41:49 taca Exp $
|
|
|
|
* Fix encoding problem of attached filenames; convert to Shift_JIS when
|
|
using Internet Explore in Japanese environment, sigh.
|
|
|
|
--- functions/mime.php.orig 2010-01-30 16:14:53.000000000 +0000
|
|
+++ functions/mime.php
|
|
@@ -2564,6 +2564,10 @@ function SendDownloadHeaders($type0, $ty
|
|
//set all the Cache Control Headers for IE
|
|
if ($isIE) {
|
|
$filename=rawurlencode($filename);
|
|
+ if ($squirrelmail_language == 'ja_JP') {
|
|
+ $filename = rawurldecode($filename);
|
|
+ $filename = mb_convert_encoding($filename, 'SJIS', 'AUTO');
|
|
+ }
|
|
header ("Pragma: public");
|
|
header ("Cache-Control: no-store, max-age=0, no-cache, must-revalidate"); // HTTP/1.1
|
|
header ("Cache-Control: post-check=0, pre-check=0", false);
|