gitlab-org--gitlab-foss/spec/support/shared_examples/controllers
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
..
issuable_notes_filter_shared_examples.rb [EE Backport] Add notes filters for epics 2019-01-14 17:20:11 -02:00
repository_lfs_file_load_examples.rb Encode Content-Disposition filenames 2019-02-04 23:12:44 -08:00
set_sort_order_from_user_preference_shared_examples.rb Save sorting preference for Issues/MRs in BE 2019-01-28 12:48:05 -06:00
todos_shared_examples.rb Revert "Revert "Merge branch 'ee-5481-epic-todos' into 'master'"" 2018-08-02 10:42:45 +02:00
uploads_actions_shared_examples.rb convert specs in javascripts/ and support/ to new syntax 2018-12-21 10:10:26 +01:00
variables_shared_examples.rb Make Variable key not secret 2018-03-22 12:08:16 +01:00