Skip to content

Commit 709211c

Browse files
committed
fix non-ascii attachment file name get corrupted in IE11 (#16711)
Contributed by Go MAEDA. git-svn-id: http://svn.redmine.org/redmine/trunk@13101 e93f8b46-1217-0410-a6f0-8f06a7374b81
1 parent 9eb7f25 commit 709211c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/controllers/application_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -558,7 +558,7 @@ def parse_qvalues(value)
558558

559559
# Returns a string that can be used as filename value in Content-Disposition header
560560
def filename_for_content_disposition(name)
561-
request.env['HTTP_USER_AGENT'] =~ %r{MSIE} ? ERB::Util.url_encode(name) : name
561+
request.env['HTTP_USER_AGENT'] =~ %r{(MSIE|Trident)} ? ERB::Util.url_encode(name) : name
562562
end
563563

564564
def api_request?

0 commit comments

Comments
 (0)