Defect #19467
closed
Downloading attachments will be wrong if the file names contain more than two chinese characters
Added by micro bead over 9 years ago.
Updated over 9 years ago.
Description
If the file names contain more than two chinese characters, downloading attachments will be wrong, and http 500 error will be occured.
Would anybody help me?
thx
Files
- Status changed from New to Closed
- Resolution set to Invalid
- Is duplicate of Defect #19374: MinGW thin and puma: Internal server error occoures when attachment file name contains non ASCII added
- Status changed from Closed to Reopened
two chinese characters can work,but more than two ones will be wrong.
have solved the problem
open the following file and add some codes
D:\Bitnami\redmine-3.0.0-0\apps\redmine\htdocs\vendor\bundle\ruby\2.0.0\gems\actionpack-4.2.0\lib\action_dispatch\middleware
if match = paths.detect { |p|
path = File.join(test test, p)
begin
File.file?(path) && File.readable?(path)
rescue SystemCallError
false
rescue EncodingError
false
end
}
- Status changed from Reopened to Closed
- Resolution changed from Invalid to Duplicate
Also available in: Atom
PDF