summaryrefslogtreecommitdiffstats
path: root/lib
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:48:09 +0200
commit105b2858740dc2ece26fe6a010070aac2ccb21d9 (patch)
tree6c4f06baee267bec4e2ac0595f65c46cf00a631d /lib
parent06ab387509e81fb33a5cef30ee038a9019c4b128 (diff)
downloadnextcloud-server-105b2858740dc2ece26fe6a010070aac2ccb21d9.tar.gz
nextcloud-server-105b2858740dc2ece26fe6a010070aac2ccb21d9.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')
-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 85edb7cb570..b62dc478015 100644
--- a/lib/private/files/mount/mountpoint.php
+++ b/lib/private/files/mount/mountpoint.php
@@ -95,10 +95,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);
}
/**