Vote #75161
完了Redmine links broken when object name contains special characters
0%
説明
When attaching files with special characters (ampersand is an example), the attachment link does not work:
attachment:"Test & Show.txt"
attachment:"Test & Show.txt"
The regular expression in application_helper.rb, parse_redmine_links does parse the filename correctly but it seems that the code that compares attachments to the filename fails to match the two.
Environment: Redmine version 2.5.0.stable Ruby version 1.9.3-p231 (2012-05-25) [i386-mingw32] Rails version 3.2.17 Environment production Database adapter Mysql2 SCM: Subversion 1.8.4 Perforce 2013.1 Git 1.8.5.2
journals
The regular expression is located at:
source:trunk/app/helpers/application_helper.rb@12954#L748
And the source to associate the file name to the attachment is located at:
source:trunk/app/helpers/application_helper.rb@12954#L871
--------------------------------------------------------------------------------
Fixed in r13106.
--------------------------------------------------------------------------------
Merged.
--------------------------------------------------------------------------------