]> cat aescling's git repositories - mastodon.git/commit
Fix bad URL schemes being accepted (#6219)
authorEugen Rochko <eugen@zeonfederated.com>
Mon, 8 Jan 2018 04:00:23 +0000 (05:00 +0100)
committerGitHub <noreply@github.com>
Mon, 8 Jan 2018 04:00:23 +0000 (05:00 +0100)
commite4a241abefaa68492938c3fbb7e5e5401d12138e
treef6f97d531d969aa6d32f6463045e1c2930e06dc2
parent93555182c3cfd810fc481d9451e990955a696ea4
Fix bad URL schemes being accepted (#6219)

* Fix actors accepting invalid URI schemes or different host between URI and URL

* Fix statuses accepting invalid URI scheme or different host to actor

* Adjust tests to new requirements

* Improve readability of mismatching_origin?/invalid_origin? methods
app/helpers/jsonld_helper.rb
app/lib/activitypub/activity/create.rb
app/services/activitypub/process_account_service.rb
spec/lib/activitypub/activity/create_spec.rb
spec/services/activitypub/fetch_remote_status_service_spec.rb