Project

General

Profile

Patch #32527 » 0001-Fix-ruby-2.7-warning-given-argument-is-nil-this-will.patch

Seiei Miyagi, 2019-11-29 16:28

View differences:

app/controllers/application_controller.rb
# Returns a string that can be used as filename value in Content-Disposition header
def filename_for_content_disposition(name)
return name unless request.env['HTTP_USER_AGENT']
%r{(MSIE|Trident|Edge)}.match?(request.env['HTTP_USER_AGENT']) ? ERB::Util.url_encode(name) : name
end
(2-2/2)