summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/files_sharing/lib/sharedmount.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/apps/files_sharing/lib/sharedmount.php b/apps/files_sharing/lib/sharedmount.php
index 0e2f19ef337..84eb4e78773 100644
--- a/apps/files_sharing/lib/sharedmount.php
+++ b/apps/files_sharing/lib/sharedmount.php
@@ -24,8 +24,9 @@ class SharedMount extends Mount implements MoveableMount {
public function __construct($storage, $mountpoint, $arguments = null, $loader = null) {
// first update the mount point before creating the parent
- self::verifyMountPoint($arguments['share']);
- parent::__construct($storage, $mountpoint, $arguments, $loader);
+ $newMountPoint = self::verifyMountPoint($arguments['share']);
+ $absMountPoint = '/' . \OCP\User::getUser() . '/files' . $newMountPoint;
+ parent::__construct($storage, $absMountPoint, $arguments, $loader);
}
/**
@@ -51,6 +52,8 @@ class SharedMount extends Mount implements MoveableMount {
$share['file_target'] = $newMountPoint;
$share['unique_name'] = true;
}
+
+ return $newMountPoint;
}
/**