Fix nil error when trying to fetch key for signature verification (#17747)

This commit is contained in:
Eugen Rochko 2022-03-12 09:02:24 +01:00 committed by GitHub
parent 503f16a333
commit fc3be17919

View file

@ -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)