about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2022-03-12 09:02:24 +0100
committerGitHub <noreply@github.com>2022-03-12 09:02:24 +0100
commit883099f3c953ee5acb30b308f7f5d985e3126f02 (patch)
tree942b9ecd8ccef5e50416f4182d6bf3e64d66af32
parent642528f45513acb823a7291f32fb07377bd2b621 (diff)
Fix nil error when trying to fetch key for signature verification (#17747)
-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 c6557817d..ef16eef08 100644
--- a/app/helpers/jsonld_helper.rb
+++ b/app/helpers/jsonld_helper.rb
@@ -54,7 +54,7 @@ module JsonLdHelper
   end
 
   def unsupported_uri_scheme?(uri)
-    !uri.start_with?('http://', 'https://')
+    uri.nil? || !uri.start_with?('http://', 'https://')
   end
 
   def invalid_origin?(url)