View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0008819||mantisbt||bugtracker||public||2008-01-28 05:24||2010-05-11 11:52|
|OS||Windows XP||OS Version||SP2|
|Summary||0008819: Invalid filename when downloading file with non-US character set|
When a file attached to an issue has a filename with a non_US characters in it's name (ex. Russian),
Where `utf8urlencode' defined as:
Please note that the header must be different for mozilla based browsers and for IE.
|Tags||No tags attached.|
Thanks a lot, Stalker!
Just replace whole function <b>file_get_extension</b> in core\file_api.php with following:
One more remark about encodings.
Thank you very much.
I believe mantis code should be rewrited so that every php non-utf-aware function is eliminated (or its arguments is preprocessed if possible) or replaced with mb_* equivalent.
But mbstring is not enabled on most non-russian configurations. That is why using mb_* stuff should be conditional, if mbstring lib is available.
IMHO the best solution is to implement a layer with equivalents to all non-utf-aware php stuff, which internally checks mbstring presence.
I think it's fixed in 1.3.