gitlab-org--gitlab-foss/spec/support
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
..
api
banzai
chunked_io
controllers
cycle_analytics_helpers
features Enable the Layout/ExtraSpacing cop 2019-01-24 13:05:45 +01:00
gitlab-git-test.git
gitlab_stubs
google_api
helpers Re-enable MethodCallWithoutArgsParentheses Cop 2019-01-29 21:05:30 +02:00
http_io
import_export
matchers
migrations_helpers Removes factories on Cluster background migration 2019-01-22 09:18:07 -06:00
prometheus
protected_tags
redis Enable the Layout/ExtraSpacing cop 2019-01-24 13:05:45 +01:00
services
shared_contexts
shared_examples Encode Content-Disposition filenames 2019-02-04 23:12:44 -08:00
shoulda/matchers
test_reports
trace
active_record_enum.rb
batch_loader.rb
capybara.rb
carrierwave.rb
commit_trailers_spec_helper.rb
db_cleaner.rb
forgery_protection.rb
generate-seed-repo-rb
issuables_requiring_filter_shared_examples.rb
json_response.rb
omni_auth.rb
prepare-gitlab-git-test-for-commit
rspec.rb
seed.rb
setup_builds_storage.rb
sidekiq.rb
stored_repositories.rb
stub_version.rb
unpack-gitlab-git-test
webmock.rb