Merge pull request from GHSA-3fjr-858r-92rw
* Fix insufficient origin validation * Bump version to v3.5.17
This commit is contained in:
parent
35f21191ee
commit
b1ed009c65
17 changed files with 46 additions and 43 deletions
|
|
@ -157,8 +157,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'])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue