]> source.dussan.org Git - nextcloud-server.git/commit
Properly handle groups with a / 2997/head
authorRoeland Jago Douma <roeland@famdouma.nl>
Mon, 9 Jan 2017 20:20:55 +0000 (21:20 +0100)
committerRoeland Jago Douma <roeland@famdouma.nl>
Mon, 27 Feb 2017 16:07:18 +0000 (17:07 +0100)
commitc75b5a56140605308237d94038947b1b27941521
tree3f5fd18273e0e5cd0f9bd6e677c3391736ad2d3a
parent019574014702657fa34acac4a631f78e27c20db8
Properly handle groups with a /

If a group contains a slash the principal URI becomes
principals/groups/foo/bar. Now the URI is plit on '/' so this creates
issues ;)

Fixes #2957

* Add tests for groups with /

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
apps/dav/lib/Connector/Sabre/Principal.php
apps/dav/lib/DAV/GroupPrincipalBackend.php
apps/dav/tests/unit/Connector/Sabre/PrincipalTest.php
apps/dav/tests/unit/DAV/GroupPrincipalTest.php