ここの情報は古いです。ご理解頂いた上でお取り扱いください。

Changeset 2533


Ignore:
Timestamp:
Apr 10, 2007, 10:02:05 PM (13 years ago)
Author:
takanashi
Message:

#593 ファイルダウンロード時、ファイル名をShift-JISに変換するように

File:
1 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE/branches/2_8/public_html/download.php

    r2510 r2533  
    3939$file = db_file_c_file4filename($_GET['filename']);
    4040$original_filename = preg_replace("/\r|\n/", '', $file['original_filename']);
    41 header('Content-Disposition: attachment ; filename="' . $original_filename . '"');
     41header('Content-Disposition: attachment ; filename="' . mb_convert_encoding($original_filename, 'SJIS', 'UTF-8') . '"');
    4242header('Content-Length: '. strlen($file['bin']));
    4343header('Content-Type: application/octet-stream');
Note: See TracChangeset for help on using the changeset viewer.