Summary | download attachment incorrect file name |
Queue | IMP |
Queue Version | 4.1 |
Type | Bug |
State | Not A Bug |
Priority | 2. Medium |
Owners | Horde Developers (at) |
Requester | chai (at) yipintsoi (dot) com |
Created | 03/16/2006 (7024 days ago) |
Due | |
Updated | 10/02/2006 (6824 days ago) |
Assigned | 03/17/2006 (7023 days ago) |
Resolved | 03/18/2006 (7022 days ago) |
Github Issue Link | |
Github Pull Request | |
Milestone | |
Patch | No |
If you found the save dialog show any incorrect filename, check the
IE->Tools->Options->advance tab->always use UTF-8 in URL
is enabled
Thank you.
form www we should use urlencode to encode the filename.
I tested this on my system (win XP TC, Win XP Eng, Win2K TC, Win2K
Eng, Win Me TC) for chinese filename. it's OK
However I found two functions( rawurlencode, urlencode ) in php do
similar job, I don't known which one is best for this job.
I try both on my test, both are OK for my test filename.
I modifity the file horde/lib/Horde/Browser.php, function downloadHeaders
inside the code that special for msie
Below is the code
/* MSIE doesn't like multiple periods in the file name. Convert
all periods (except the last one) to underscores. */
if ($this->isBrowser('msie')) {
if (($pos = strrpos($filename, '.'))) {
$filename = strtr(substr($filename, 0, $pos), '.',
'_') . substr($filename, $pos);
}
/* add the follow line to encode the filename */
$filename = rawurlencode($filename);
}
Thank you.
Could you test with IE.
Can you download my attachment save to locale disk ?
You can test this issue at my server.
http://203.144.173.70/horde/imp
user: temp4@truemail.co.th
password: temp4temp4
messages number 14,15
State ⇒ Not A Bug
State ⇒
fine, IE not, because it is broken.
New Attachment: ????? English.txt
New Attachment: 1142588306.1051.coconut,S=2403_2,S
The subject and attachment are Thai UTF-8 encode.
State ⇒ Feedback
New Attachment: Thai.JPG
view - correct attachment file name
download - incorrect attachment file name
New Attachment: English.JPG
view - incorrect attachment file name
download - incorrect attachment file name
view - incorrect attachment file name
download - incorrect attachment file name
State ⇒ Assigned
Priority ⇒ 2. Medium
State ⇒ Unconfirmed
New Attachment: incorrect_character.JPG
Queue ⇒ IMP
Summary ⇒ download attachment incorrect file name
Type ⇒ Bug
But incorrect charater after click download or download in zip file.
I found this problem in current and previous version.
Regards,
Chai.