mirror of
https://github.com/redmine/redmine.git
synced 2026-05-07 19:26:59 +02:00
Non-ascii attachement filename fix for IE.
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1053 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user