From 3e36bba94d33da611b46e44e4744cd3e4e866c10 Mon Sep 17 00:00:00 2001 From: Marcel Klehr Date: Wed, 13 Dec 2023 11:19:15 +0100 Subject: [PATCH] Fix(client#propPatch): Escape *all* occurences of # Signed-off-by: Marcel Klehr --- src/client.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client.js b/src/client.js index 92e9f5a0b..ff4c49e65 100644 --- a/src/client.js +++ b/src/client.js @@ -239,7 +239,7 @@ class AclDavService { } const props = {} props[ACL_PROPERTIES.PROPERTY_ACL_LIST] = aclList - return client._client.propPatch(client._client.baseUrl + model.path.replace('#', '%23') + '/' + encodeURIComponent(model.name), props) + return client._client.propPatch(client._client.baseUrl + model.path.replaceAll('#', '%23') + '/' + encodeURIComponent(model.name), props) } }