@@ -558,7 +558,7 class ApplicationController < ActionController::Base | |||
|
558 | 558 | |
|
559 | 559 | # Returns a string that can be used as filename value in Content-Disposition header |
|
560 | 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 | 562 | end |
|
563 | 563 | |
|
564 | 564 | def api_request? |
General Comments 0
You need to be logged in to leave comments.
Login now