##// END OF EJS Templates
Fix Non ASCII attachment filename encoding broken (MOJIBAKE) in Microsoft Edge Explorer (#21656)....
Jean-Philippe Lang -
r14631:c9ae44e85b62
parent child
Show More
@@ -595,7 +595,7 class ApplicationController < ActionController::Base
595 595
596 596 # Returns a string that can be used as filename value in Content-Disposition header
597 597 def filename_for_content_disposition(name)
598 request.env['HTTP_USER_AGENT'] =~ %r{(MSIE|Trident)} ? ERB::Util.url_encode(name) : name
598 request.env['HTTP_USER_AGENT'] =~ %r{(MSIE|Trident|Edge)} ? ERB::Util.url_encode(name) : name
599 599 end
600 600
601 601 def api_request?
General Comments 0
You need to be logged in to leave comments. Login now