##// END OF EJS Templates
Merged r15013 (#21656)....
Jean-Philippe Lang -
r14699:5f8bea1d96ef
parent child
Show More
@@ -609,7 +609,7 class ApplicationController < ActionController::Base
609
609
610 # Returns a string that can be used as filename value in Content-Disposition header
610 # Returns a string that can be used as filename value in Content-Disposition header
611 def filename_for_content_disposition(name)
611 def filename_for_content_disposition(name)
612 request.env['HTTP_USER_AGENT'] =~ %r{(MSIE|Trident)} ? ERB::Util.url_encode(name) : name
612 request.env['HTTP_USER_AGENT'] =~ %r{(MSIE|Trident|Edge)} ? ERB::Util.url_encode(name) : name
613 end
613 end
614
614
615 def api_request?
615 def api_request?
General Comments 0
You need to be logged in to leave comments. Login now