##// END OF EJS Templates
fix non-ascii attachment file name get corrupted in IE11 (#16711)...
Toshi MARUYAMA -
r12826:709211cb9cc1
parent child
Show More
@@ -558,7 +558,7 class ApplicationController < ActionController::Base
558
558
559 # Returns a string that can be used as filename value in Content-Disposition header
559 # Returns a string that can be used as filename value in Content-Disposition header
560 def filename_for_content_disposition(name)
560 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
562 end
562 end
563
563
564 def api_request?
564 def api_request?
General Comments 0
You need to be logged in to leave comments. Login now