diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2022-03-12 09:02:24 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-12 09:02:24 +0100 |
commit | 883099f3c953ee5acb30b308f7f5d985e3126f02 (patch) | |
tree | 942b9ecd8ccef5e50416f4182d6bf3e64d66af32 | |
parent | 642528f45513acb823a7291f32fb07377bd2b621 (diff) |
Fix nil error when trying to fetch key for signature verification (#17747)
-rw-r--r-- | app/helpers/jsonld_helper.rb | 2 |
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) |