summaryrefslogtreecommitdiffstats
path: root/app/controllers/attachments_controller.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2008-01-10 22:42:41 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2008-01-10 22:42:41 +0000
commit941f9bf3dd3bfbbb575cd5f56d52a52fdf173eba (patch)
tree6f8e23e74a755f9370cea6fe53a3b5fb5d809ed4 /app/controllers/attachments_controller.rb
parenta39f655a7c86fab775e725505f262692ced2c2ca (diff)
downloadredmine-941f9bf3dd3bfbbb575cd5f56d52a52fdf173eba.tar.gz
redmine-941f9bf3dd3bfbbb575cd5f56d52a52fdf173eba.zip
Non-ascii attachement filename fix for IE.
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1053 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers/attachments_controller.rb')
-rw-r--r--app/controllers/attachments_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/attachments_controller.rb b/app/controllers/attachments_controller.rb
index 0913de529..4e87e5442 100644
--- a/app/controllers/attachments_controller.rb
+++ b/app/controllers/attachments_controller.rb
@@ -21,7 +21,7 @@ class AttachmentsController < ApplicationController
def download
# images are sent inline
- send_file @attachment.diskfile, :filename => @attachment.filename,
+ send_file @attachment.diskfile, :filename => filename_for_content_disposition(@attachment.filename),
:type => @attachment.content_type,
:disposition => (@attachment.image? ? 'inline' : 'attachment')
rescue