]> cat aescling's git repositories - mastodon.git/commit
Punycode URI normalization (#2370)
authorEugen <eugen@zeonfederated.com>
Tue, 25 Apr 2017 00:47:31 +0000 (02:47 +0200)
committerGitHub <noreply@github.com>
Tue, 25 Apr 2017 00:47:31 +0000 (02:47 +0200)
commit17c591ffba59bda512fe43a09c06c40324acc472
treec03ba1c23b0adf46230b3b97b62efb018c26ded5
parentbb04a9be52e005fb8bbeef22e5b8d30f0d202903
Punycode URI normalization (#2370)

* Fix #2119 - Whenever about to send a HTTP request, normalize the URI

* Add test for IDN request in FetchLinkCardService

* Perform IDN normalization on domains before they are stored in the DB
17 files changed:
app/controllers/api/push_controller.rb
app/controllers/authorize_follow_controller.rb
app/lib/tag_manager.rb
app/models/account.rb
app/models/domain_block.rb
app/models/media_attachment.rb
app/services/fetch_link_card_service.rb
app/services/fetch_remote_account_service.rb
app/services/fetch_remote_status_service.rb
app/services/follow_remote_account_service.rb
app/services/process_feed_service.rb
app/services/process_interaction_service.rb
app/services/pubsubhubbub/subscribe_service.rb
app/validators/url_validator.rb
app/workers/pubsubhubbub/delivery_worker.rb
spec/fixtures/requests/idn.txt [new file with mode: 0644]
spec/services/fetch_link_card_service_spec.rb [new file with mode: 0644]