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
Showing
- app/helpers/jsonld_helper.rb 4 additions, 0 deletionsapp/helpers/jsonld_helper.rb
- app/lib/activitypub/activity/create.rb 18 additions, 2 deletionsapp/lib/activitypub/activity/create.rb
- app/services/activitypub/process_account_service.rb 16 additions, 2 deletionsapp/services/activitypub/process_account_service.rb
- spec/lib/activitypub/activity/create_spec.rb 18 additions, 16 deletionsspec/lib/activitypub/activity/create_spec.rb
- spec/services/activitypub/fetch_remote_status_service_spec.rb 6 additions, 4 deletions.../services/activitypub/fetch_remote_status_service_spec.rb
Loading
Please register or sign in to comment