summaryrefslogtreecommitdiffstats
path: root/lib/private/share/share.php
diff options
context:
space:
mode:
authorBjoern Schiessle <schiessle@owncloud.com>2014-08-05 20:34:32 +0200
committerBjoern Schiessle <schiessle@owncloud.com>2014-08-05 20:34:32 +0200
commit48c57b80e3039fe9ccd8eb679e1043e842e0398f (patch)
treed946f90bed4f239e4eda6f39513c7a6c3f3b13f5 /lib/private/share/share.php
parentf45117381702312b502e749089cba2e49d492d50 (diff)
downloadnextcloud-server-48c57b80e3039fe9ccd8eb679e1043e842e0398f.tar.gz
nextcloud-server-48c57b80e3039fe9ccd8eb679e1043e842e0398f.zip
remove trailing slash from path
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, '/');
}
}
}