diff options
author | Claire <claire.github-309c@sitedethib.com> | 2024-02-01 15:56:46 +0100 |
---|---|---|
committer | Starfall <us@starfall.systems> | 2024-02-01 14:41:00 -0600 |
commit | 8f6a0c2cc87d4515ffa3be0ab8768ced5dcb5850 (patch) | |
tree | cca832f1cc0077bb8641cac74d89dbcc996350e2 /app/helpers/jsonld_helper.rb | |
parent | 10d676b5a82841e3739fa8921499a394e49c3303 (diff) |
Merge pull request from GHSA-3fjr-858r-92rw
* Fix insufficient origin validation * Bump version to 4.3.0-alpha.1
Diffstat (limited to 'app/helpers/jsonld_helper.rb')
-rw-r--r-- | app/helpers/jsonld_helper.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/helpers/jsonld_helper.rb b/app/helpers/jsonld_helper.rb index 24362b61e..b81ca5b35 100644 --- a/app/helpers/jsonld_helper.rb +++ b/app/helpers/jsonld_helper.rb @@ -155,8 +155,8 @@ module JsonLdHelper end end - def fetch_resource(uri, id, on_behalf_of = nil) - unless id + def fetch_resource(uri, id_is_known, on_behalf_of = nil) + unless id_is_known json = fetch_resource_without_id_validation(uri, on_behalf_of) return if !json.is_a?(Hash) || unsupported_uri_scheme?(json['id']) |