From 2822d0579e170aa5f58d8726acb8c67e5633b523 Mon Sep 17 00:00:00 2001 From: Vincent Petry Date: Mon, 13 Apr 2015 12:36:47 +0200 Subject: 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 --- lib/private/files/mount/mountpoint.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib/private/files/mount') 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); } /** -- cgit v1.2.3