summaryrefslogtreecommitdiffstats
path: root/lib/private/share/share.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/share/share.php')
-rw-r--r--lib/private/share/share.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/private/share/share.php b/lib/private/share/share.php
index 450c71cf8a2..cf33f9b65f5 100644
--- a/lib/private/share/share.php
+++ b/lib/private/share/share.php
@@ -1388,7 +1388,8 @@ class Share extends \OC\Share\Constants {
}
if ($mounts[$row['storage']]) {
$path = $mounts[$row['storage']]->getMountPoint().$row['path'];
- $row['path'] = substr($path, $root);
+ $relPath = substr($path, $root); // path relative to data/user
+ $row['path'] = rtrim($relPath, '/');
}
}
}