@@ -595,7 +595,7 class ApplicationController < ActionController::Base | |||||
595 |
|
595 | |||
596 | # Returns a string that can be used as filename value in Content-Disposition header |
|
596 | # Returns a string that can be used as filename value in Content-Disposition header | |
597 | def filename_for_content_disposition(name) |
|
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 | end |
|
599 | end | |
600 |
|
600 | |||
601 | def api_request? |
|
601 | def api_request? |
General Comments 0
You need to be logged in to leave comments.
Login now