6.0.0-beta1
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
8/11/25
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#129] attachment filename decode problem
*
Your Email Address
*
Spam protection
Enter the letters below:
.__ . .. .. ..___ | \| || ||\/|[__ |__/|/\||__|| |[___
Comment
> I found that IE doesn't accept non-ASCII URL, the information from > 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. > > Not only IMP but also gollem > > I hope someone can test this solution on other lang system. > > > > > > 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); > > } > >
Attachment
Watch this ticket
N
ew Ticket
M
y Tickets
S
earch
Q
uery Builder
R
eports
Saved Queries
Open Bugs
Bugs waiting for Feedback
Open Bugs in Releases
Open Enhancements
Enhancements waiting for Feedback
Bugs with Patches
Enhancements with Patches
Release Showstoppers
Stalled Tickets
New Tickets
Horde 5 Showstoppers