about summary refs log tree commit diff
path: root/app/helpers
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2021-05-01 23:18:59 +0200
committerGitHub <noreply@github.com>2021-05-01 23:18:59 +0200
commitf627d2eb938d220eb767b0211b66b4281c921f75 (patch)
tree8aab7958735911883efa8a8e86f968f90204a84b /app/helpers
parent422df9d670dea235089e5d0732f50bc45bd3d673 (diff)
Fix trying to fetch key from empty URI when verifying HTTP signature (#16100)
Diffstat (limited to 'app/helpers')
-rw-r--r--app/helpers/jsonld_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/jsonld_helper.rb b/app/helpers/jsonld_helper.rb
index 1c473efa3..62eb50f78 100644
--- a/app/helpers/jsonld_helper.rb
+++ b/app/helpers/jsonld_helper.rb
@@ -67,7 +67,7 @@ module JsonLdHelper
     unless id
       json = fetch_resource_without_id_validation(uri, on_behalf_of)
 
-      return unless json
+      return if !json.is_a?(Hash) || unsupported_uri_scheme?(json['id'])
 
       uri = json['id']
     end