Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/groupfolders.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Schwan <carl@carlschwan.eu>2022-08-31 18:17:04 +0300
committerbackportbot-nextcloud[bot] <backportbot-nextcloud[bot]@users.noreply.github.com>2022-08-31 18:59:19 +0300
commitc00a8c5fe25c774abf7f43e4a385d68939ccb749 (patch)
tree42338718d7919b634262d818b47fa54f76129b2e
parent56b30df8efc57b94700af4ccce018933d28c2b83 (diff)
Fix folder with hashtagbackport/2073/stable24
Make sure the url is properly encoded otherwise we can't change the ACL of a folder Signed-off-by: Carl Schwan <carl@carlschwan.eu>
-rw-r--r--src/client.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client.js b/src/client.js
index 3666fd8f..d3e426c5 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 + '/' + model.name, props)
+ return client._client.propPatch(client._client.baseUrl + model.path.replace('#', '%23') + '/' + encodeURIComponent(model.name), props)
}
}