summaryrefslogtreecommitdiffstats
path: root/lib/private/files/mount
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2015-04-13 12:36:47 +0200
committerVincent Petry <pvince81@owncloud.com>2015-04-13 12:36:47 +0200
commit2822d0579e170aa5f58d8726acb8c67e5633b523 (patch)
tree2baac013db05cefed3acaf312b7094278900a884 /lib/private/files/mount
parentc3fbc2b6fd09bb5b94112da9248cae28d6ef85e3 (diff)
downloadnextcloud-server-2822d0579e170aa5f58d8726acb8c67e5633b523.tar.gz
nextcloud-server-2822d0579e170aa5f58d8726acb8c67e5633b523.zip
Properly add trailing slash to mount point
Fixes resolving mount points when shared mount point's target name has the same prefix as the source name
Diffstat (limited to 'lib/private/files/mount')
-rw-r--r--lib/private/files/mount/mountpoint.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/private/files/mount/mountpoint.php b/lib/private/files/mount/mountpoint.php
index 30c06790944..f1e492c8603 100644
--- a/lib/private/files/mount/mountpoint.php
+++ b/lib/private/files/mount/mountpoint.php
@@ -113,10 +113,12 @@ class MountPoint implements IMountPoint {
}
/**
+ * Sets the mount point path, relative to data/
+ *
* @param string $mountPoint new mount point
*/
public function setMountPoint($mountPoint) {
- $this->mountPoint = $mountPoint;
+ $this->mountPoint = $this->formatPath($mountPoint);
}
/**