diff options
author | Go MAEDA <maeda@farend.jp> | 2019-04-12 05:25:31 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2019-04-12 05:25:31 +0000 |
commit | 51b0542e7d3c0dbaafb5da5c12f335eb8ad8b240 (patch) | |
tree | b7448305ef7f8a389f248ed31f3de4dacb3b40f2 /app | |
parent | e5976508975dfc1403b5d34f17c38bbbb5e3681f (diff) | |
download | redmine-51b0542e7d3c0dbaafb5da5c12f335eb8ad8b240.tar.gz redmine-51b0542e7d3c0dbaafb5da5c12f335eb8ad8b240.zip |
Attachments with Unicode uppercase names are not shown in wiki pages (#30441).
Patch by Evgeny Seliverstov.
git-svn-id: http://svn.redmine.org/redmine/trunk@18057 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r-- | app/helpers/application_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index d00636d4c..1eef95100 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -774,7 +774,7 @@ module ApplicationHelper attachments += obj.attachments if obj.respond_to?(:attachments) if attachments.present? text.gsub!(/src="([^\/"]+\.(bmp|gif|jpg|jpe|jpeg|png))"(\s+alt="([^"]*)")?/i) do |m| - filename, ext, alt, alttext = $1.downcase, $2, $3, $4 + filename, ext, alt, alttext = $1, $2, $3, $4 # search for the picture in attachments if found = Attachment.latest_attach(attachments, CGI.unescape(filename)) image_url = download_named_attachment_url(found, found.filename, :only_path => only_path) |