gitlab-org--gitlab-foss/spec/controllers/concerns
Stan Hu 41b51c0656 Encode Content-Disposition filenames
Users downloading non-ASCII attachments would see garbled characters.
When used with object storage, AWS S3 would return an InvalidArgument
error: Header value cannot be represented using ISO-8859-1.

Per RFC 5987 and RFC 6266, Content-Disposition should be encoded
properly. This commit takes the Rails 6 implementation of
ActiveSuppport::Http::ContentDisposition
(https://github.com/rails/rails/pull/33829) and ports it here.

Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/47673
2019-02-04 23:12:44 -08:00
..
checks_collaboration_spec.rb Enable the Layout/ExtraSpacing cop 2019-01-24 13:05:45 +01:00
continue_params_spec.rb Reuses InternalRedirect when possible 2018-05-04 13:54:43 +02:00
controller_with_cross_project_access_check_spec.rb Update specs to rails5 format 2018-12-19 10:04:31 +11:00
group_tree_spec.rb Update specs to rails5 format 2018-12-19 10:04:31 +11:00
internal_redirect_spec.rb Backport InternalRedirect#sanitize_redirect 2018-06-14 09:02:32 +10:00
issuable_collections_spec.rb Save sorting preference for Issues/MRs in BE 2019-01-28 12:48:05 -06:00
lfs_request_spec.rb Update specs to rails5 format 2018-12-19 10:04:31 +11:00
send_file_upload_spec.rb Encode Content-Disposition filenames 2019-02-04 23:12:44 -08:00