diff options
author | Bjoern Schiessle <schiessle@owncloud.com> | 2014-08-05 20:34:32 +0200 |
---|---|---|
committer | Bjoern Schiessle <schiessle@owncloud.com> | 2014-08-06 15:19:10 +0200 |
commit | 079390c037fc033bad7159f944fbb23175e34ee8 (patch) | |
tree | e0e7133ba5561e461e10074ae3bf5d6cc860e485 /lib | |
parent | 8a038eeeefe541f0baf32ad0eae34570332361a7 (diff) | |
download | nextcloud-server-079390c037fc033bad7159f944fbb23175e34ee8.tar.gz nextcloud-server-079390c037fc033bad7159f944fbb23175e34ee8.zip |
remove trailing slash from path
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/share/share.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/private/share/share.php b/lib/private/share/share.php index 7a1e1298a93..daed42440d7 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, '/'); } } } |