From: Eugen Rochko Date: Sat, 12 Mar 2022 08:02:24 +0000 (+0100) Subject: Fix nil error when trying to fetch key for signature verification (#17747) X-Git-Url: https://git.xn--scling-oua.cat.family/?a=commitdiff_plain;h=883099f3c953ee5acb30b308f7f5d985e3126f02;p=mastodon.git Fix nil error when trying to fetch key for signature verification (#17747) --- 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)