diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-02-12 09:44:23 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-02-12 09:44:23 +0000 |
commit | 4957f916399b133e0250d6c6211257657c914de5 (patch) | |
tree | 90e3975ac6f5da81dde3a459bac5017337362816 /app/controllers | |
parent | 2a11abdcfcc150c31c1b68d89e118f7d876c2cfb (diff) | |
download | redmine-4957f916399b133e0250d6c6211257657c914de5.tar.gz redmine-4957f916399b133e0250d6c6211257657c914de5.zip |
scm: fix non ASCII filename downloaded from repo is broken on Internet Explorer (#7288).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4816 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/repositories_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/repositories_controller.rb b/app/controllers/repositories_controller.rb index 50a6ff4a1..74d420e5a 100644 --- a/app/controllers/repositories_controller.rb +++ b/app/controllers/repositories_controller.rb @@ -124,7 +124,7 @@ class RepositoriesController < ApplicationController (show_error_not_found; return) unless @content if 'raw' == params[:format] || @content.is_binary_data? || (@entry.size && @entry.size > Setting.file_max_size_displayed.to_i.kilobyte) # Force the download - send_data @content, :filename => @path.split('/').last + send_data @content, :filename => filename_for_content_disposition(@path.split('/').last) else # Prevent empty lines when displaying a file with Windows style eol @content.gsub!("\r\n", "\n") |