Defect #16711 » IE11_non_ascii_file_name_corruption_fix.diff
| app/controllers/application_controller.rb (working copy) | ||
|---|---|---|
| 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? |