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

th-downstream
Eugen Rochko 3 years ago committed by GitHub
parent 503f16a333
commit fc3be17919

@ -54,7 +54,7 @@ module JsonLdHelper
end end
def unsupported_uri_scheme?(uri) def unsupported_uri_scheme?(uri)
!uri.start_with?('http://', 'https://') uri.nil? || !uri.start_with?('http://', 'https://')
end end
def invalid_origin?(url) def invalid_origin?(url)

Loading…
Cancel
Save