Patch #32527 » 0001-Fix-ruby-2.7-warning-given-argument-is-nil-this-will.patch
| 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
|
||
- « Previous
- 1
- 2
- Next »