summaryrefslogtreecommitdiffstats
path: root/app/controllers/application_controller.rb
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2021-04-01 15:19:16 +0000
committerGo MAEDA <maeda@farend.jp>2021-04-01 15:19:16 +0000
commit094628e6947e9a6cf889d01ed34cfbf32e1d73b8 (patch)
tree39cf87effbe5b52e4c616434314a5d984f61b61c /app/controllers/application_controller.rb
parent78a5d9f667c586d1506ba699a17555deeb7d128a (diff)
downloadredmine-094628e6947e9a6cf889d01ed34cfbf32e1d73b8.tar.gz
redmine-094628e6947e9a6cf889d01ed34cfbf32e1d73b8.zip
Remove #filename_for_content_disposition for MS browsers (#29914, #32914).
Patch by Pavel Rosický. git-svn-id: http://svn.redmine.org/redmine/trunk@20892 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers/application_controller.rb')
-rw-r--r--app/controllers/application_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb
index c63382e98..7ddf58a4c 100644
--- a/app/controllers/application_controller.rb
+++ b/app/controllers/application_controller.rb
@@ -692,7 +692,7 @@ class ApplicationController < ActionController::Base
# Returns a string that can be used as filename value in Content-Disposition header
def filename_for_content_disposition(name)
- %r{(MSIE|Trident|Edge)}.match?(request.env['HTTP_USER_AGENT'].to_s) ? ERB::Util.url_encode(name) : name
+ name
end
def api_request?