diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2021-05-01 23:18:59 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-01 23:18:59 +0200 |
commit | f627d2eb938d220eb767b0211b66b4281c921f75 (patch) | |
tree | 8aab7958735911883efa8a8e86f968f90204a84b /app/services | |
parent | 422df9d670dea235089e5d0732f50bc45bd3d673 (diff) |
Fix trying to fetch key from empty URI when verifying HTTP signature (#16100)
Diffstat (limited to 'app/services')
-rw-r--r-- | app/services/activitypub/fetch_remote_key_service.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/services/activitypub/fetch_remote_key_service.rb b/app/services/activitypub/fetch_remote_key_service.rb index df17d9079..c48288b3b 100644 --- a/app/services/activitypub/fetch_remote_key_service.rb +++ b/app/services/activitypub/fetch_remote_key_service.rb @@ -5,6 +5,8 @@ class ActivityPub::FetchRemoteKeyService < BaseService # Returns account that owns the key def call(uri, id: true, prefetched_body: nil) + return if uri.blank? + if prefetched_body.nil? if id @json = fetch_resource_without_id_validation(uri) |