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

Changeset 2252


Ignore:
Timestamp:
Mar 25, 2007, 2:00:20 PM (13 years ago)
Author:
ebihara
Message:

#558 ファイルダウンロード時に改行文字列を削除するように

File:
1 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE/branches/ebihara/prj_dev28_misc01/public_html/download.php

    r2217 r2252  
    3333
    3434$file = db_file_c_file4filename($_GET['filename']);
    35 header('Content-Disposition: inline; filename="'.$file['original_filename'].'"');
     35$original_filename = preg_replace("/\r|\n/", '', $file['original_filename']);
     36header('Content-Disposition: inline; filename="' . $original_filename . '"');
    3637header('Content-Length: '. strlen($file['bin']));
    3738header('Content-Type: application/octet-stream');
Note: See TracChangeset for help on using the changeset viewer.