Patch #32527 » 0001-Fix-ruby-2.7-warning-given-argument-is-nil-this-will.patch
app/controllers/application_controller.rb | ||
---|---|---|
644 | 644 | |
645 | 645 |
# Returns a string that can be used as filename value in Content-Disposition header |
646 | 646 |
def filename_for_content_disposition(name) |
647 |
%r{(MSIE|Trident|Edge)}.match?(request.env['HTTP_USER_AGENT']) ? ERB::Util.url_encode(name) : name
|
|
647 |
request.env['HTTP_USER_AGENT']&.match?(%r{(MSIE|Trident|Edge)}) ? ERB::Util.url_encode(name) : name
|
|
648 | 648 |
end |
649 | 649 | |
650 | 650 |
def api_request? |