summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2018-01-10 08:35:20 +0100
committerRoeland Jago Douma <roeland@famdouma.nl>2018-01-10 08:35:20 +0100
commite5cc8ebe7a14ab421a83be2b664a9bb976c0d063 (patch)
treed2427ae381ffed6d33b21eaa794b8a4b286c9845 /apps
parent167f4624cee49fa085f0d503b59a2c60a2d16a07 (diff)
downloadnextcloud-server-e5cc8ebe7a14ab421a83be2b664a9bb976c0d063.tar.gz
nextcloud-server-e5cc8ebe7a14ab421a83be2b664a9bb976c0d063.zip
Return proper principal on the uploads collection listing
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'apps')
-rw-r--r--apps/dav/lib/Upload/UploadHome.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/dav/lib/Upload/UploadHome.php b/apps/dav/lib/Upload/UploadHome.php
index 9f4ae0e8a2c..ec31e93f4f9 100644
--- a/apps/dav/lib/Upload/UploadHome.php
+++ b/apps/dav/lib/Upload/UploadHome.php
@@ -66,7 +66,8 @@ class UploadHome implements ICollection {
}
function getName() {
- return 'uploads';
+ list(,$name) = \Sabre\Uri\split($this->principalInfo['uri']);
+ return $name;
}
function setName($name) {