summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/lib/external
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2015-10-05 17:14:39 +0200
committerRobin Appelman <icewind@owncloud.com>2015-10-05 17:14:39 +0200
commite468b38bd4349f871d15efa506c3f5e362faea39 (patch)
tree0b72b9cd3d7d3dc241e98f3fc0abdd37daedb5d0 /apps/files_sharing/lib/external
parent52c8b488cb0dd0fc95078602eb1e14516c74ae2e (diff)
downloadnextcloud-server-e468b38bd4349f871d15efa506c3f5e362faea39.tar.gz
nextcloud-server-e468b38bd4349f871d15efa506c3f5e362faea39.zip
sanitize mountpoint
Diffstat (limited to 'apps/files_sharing/lib/external')
-rw-r--r--apps/files_sharing/lib/external/mountprovider.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_sharing/lib/external/mountprovider.php b/apps/files_sharing/lib/external/mountprovider.php
index 59072c203fb..1739cec543f 100644
--- a/apps/files_sharing/lib/external/mountprovider.php
+++ b/apps/files_sharing/lib/external/mountprovider.php
@@ -50,7 +50,7 @@ class MountProvider implements IMountProvider {
public function getMount(IUser $user, $data, IStorageFactory $storageFactory) {
$data['manager'] = $this;
- $mountPoint = '/' . $user->getUID() . '/files' . $data['mountpoint'];
+ $mountPoint = '/' . $user->getUID() . '/files/' . ltrim($data['mountpoint'], '/');
$data['mountpoint'] = $mountPoint;
$data['certificateManager'] = \OC::$server->getCertificateManager($user->getUID());
$managerProvider = $this->managerProvider;