*** /usr/share/redmine/app/models/attachment.rb.orig Sun Sep 19 00:08:18 2010 --- /usr/share/redmine/app/models/attachment.rb Sun Sep 19 00:34:19 2010 *************** *** 168,175 **** # NOTE: File.basename doesn't work right with Windows paths on Unix # INCORRECT: just_filename = File.basename(value.gsub('\\\\', '/')) # Finally, replace all non alphanumeric, hyphens or periods with underscore ! @filename = just_filename.gsub(/[^\w\.\-]/,'_') end # Returns an ASCII or hashed filename --- 168,177 ---- # NOTE: File.basename doesn't work right with Windows paths on Unix # INCORRECT: just_filename = File.basename(value.gsub('\\\\', '/')) + just_filename = just_filename.force_encoding('UTF-8') # Finally, replace all non alphanumeric, hyphens or periods with underscore ! just_filename = just_filename.gsub(/[^[:word:]\.\-]/,'_') ! @filename = just_filename end # Returns an ASCII or hashed filename