downloading attachments results in corrupt filename
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Eventum |
Fix Released
|
Low
|
Elan Ruusamäe |
Bug Description
Using IE 10 on Windows 7, clicking the link to download a file attached to a ticket prompts me to:
Do you want to save =_UTF-8_
There is no problem downloading the attachment in Firefox 24.0, Chrome 30.0.1599.101 m, or Opera 16.0.1196.73. The problem also occurs using Safari 5.1.7 (7534.57.2)
Looking at the code and doing a bit of research led me to: http://
And the problem appears to be in mime encoding the filename in the Attachment:
Changing line 82 to the following:
$filename = rawurlencode(
and changing line 84 to the following:
header(
Has produced results that work in all 5 browsers listed above.
I do not have the resources to test this fix on Mac or Linux or to test it with other character sets/languages so further tested is warranted.
Changed in eventum: | |
status: | Fix Committed → Fix Released |
but if you use:
$filename = rawurlencode( $filename) ;
instead of: :encodeQuotedPr intable( $filename) ;
$filename = Mime_Helper:
does that work nicely for you?
I'ts ok with Chrome 29 for Linux here.