From f4845adf4da3312bc52e53470d22a5c27d62cd1b Mon Sep 17 00:00:00 2001 From: Max Kadel Date: Tue, 16 Mar 2021 16:21:46 -0400 Subject: [PATCH] I don't know how the escape crept back in, but remove it for real (#528) --- .../app/models/hydra/access_controls/permission.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hydra-access-controls/app/models/hydra/access_controls/permission.rb b/hydra-access-controls/app/models/hydra/access_controls/permission.rb index 0f589772..cdfe1ada 100644 --- a/hydra-access-controls/app/models/hydra/access_controls/permission.rb +++ b/hydra-access-controls/app/models/hydra/access_controls/permission.rb @@ -83,7 +83,7 @@ def build_agent(name, type) # however in order to ensure backward compatibility with already recorded values we are normalizing # the fragment here. See https://developer.mozilla.org/en-US/docs/Web/API/URL/hash def build_agent_resource(prefix, name) - [Agent.new(::RDF::URI.new("#{prefix}##{URI.encode(name)}").normalize!)] + [Agent.new(::RDF::URI.new("#{prefix}##{name}").normalize!)] end def build_access(access)