View Issue Details

IDProjectCategoryView StatusLast Update
0010834mantisbtcode cleanuppublic2010-04-23 23:22
Reporterleon_li Assigned Todhx  
PrioritynormalSeverityminorReproducibilitysometimes
Status closedResolutionduplicate 
OS Versionchinese 
Product Version1.2.0rc1 
Summary0010834: Project Documentation file name changed when download
Description

every file name would be changed to "file_download.php" .
the cilents is all chinese Windows XP system , when they upload a file to " Project Documentation " it's ok,and the view name is all right.
bug if they download from the web , the browser notice people to save file as "file_download.php" regardless of what name was files.

Steps To Reproduce

see up

Additional Information

I borrowed the previous version 1.1.8 . modified it like this, and it's OK now.

// header( 'Content-Disposition:' . $t_disposition . ' filename*=UTF-8\'\'' . urlencode( $t_filename ) . '; filename="' . urlencode( $t_filename ) . '"' );
header( 'Content-Disposition:' . $t_disposition . ' filename="' . urlencode( $t_filename ) . '"' );

I am not a programmer, so I don't know what I did is correct or no, but he is really can very good. I wish I had worked in the same in Chinese or other english-speaking friends help. Thank you

TagsNo tags attached.
Attached Files
file_download_file_name.png (3,415 bytes)   
file_download_file_name.png (3,415 bytes)   

Relationships

duplicate of 0010494 closeddhx National characters in filename of attaches 

Activities

dhx

dhx

2009-08-14 08:54

reporter   ~0022728

Thanks for reporting this bug (and doing a good job making a useful report!)

I fixed this issue a while ago in the 1.2.x branch (as per bug 0010494).

I advise you to read that bug report and the attached commit for more information on what the correct Content-Disposition heading should be. You will probably want to backport the patch from 0010494 to your local 1.1.8 copy if you're not yet ready to upgrade to 1.2.x.