summaryrefslogtreecommitdiffstats
path: root/apps/dav/lib/DAV/Sharing/Backend.php
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2020-12-02 20:00:46 +0100
committerArthur Schiwon <blizzz@arthur-schiwon.de>2020-12-16 22:15:02 +0100
commit1186977589efc4e0d5b78f0024e6eaddffe39f6b (patch)
tree1d60831ced2e892d0e52f63e9c32b3e55aecbdd1 /apps/dav/lib/DAV/Sharing/Backend.php
parent15e4f1c18162483ec5159af2165ebc90c4360a56 (diff)
downloadnextcloud-server-1186977589efc4e0d5b78f0024e6eaddffe39f6b.tar.gz
nextcloud-server-1186977589efc4e0d5b78f0024e6eaddffe39f6b.zip
fixes sharing to group ids with characters that are being url encoded
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'apps/dav/lib/DAV/Sharing/Backend.php')
-rw-r--r--apps/dav/lib/DAV/Sharing/Backend.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/dav/lib/DAV/Sharing/Backend.php b/apps/dav/lib/DAV/Sharing/Backend.php
index 979eb391354..9dbbc2f3970 100644
--- a/apps/dav/lib/DAV/Sharing/Backend.php
+++ b/apps/dav/lib/DAV/Sharing/Backend.php
@@ -107,6 +107,7 @@ class Backend {
return;
}
+ $principal[2] = urldecode($principal[2]);
if (($principal[1] === 'users' && !$this->userManager->userExists($principal[2])) ||
($principal[1] === 'groups' && !$this->groupManager->groupExists($principal[2]))) {
// User or group does not exist