@@ -615,7 +615,7 class ApplicationController < ActionController::Base | |||||
615 |
|
615 | |||
616 | # Returns a string that can be used as filename value in Content-Disposition header |
|
616 | # Returns a string that can be used as filename value in Content-Disposition header | |
617 | def filename_for_content_disposition(name) |
|
617 | def filename_for_content_disposition(name) | |
618 | request.env['HTTP_USER_AGENT'] =~ %r{(MSIE|Trident)} ? ERB::Util.url_encode(name) : name |
|
618 | request.env['HTTP_USER_AGENT'] =~ %r{(MSIE|Trident|Edge)} ? ERB::Util.url_encode(name) : name | |
619 | end |
|
619 | end | |
620 |
|
620 | |||
621 | def api_request? |
|
621 | def api_request? |
General Comments 0
You need to be logged in to leave comments.
Login now