diff options
author | Morris Jobke <hey@morrisjobke.de> | 2014-08-05 23:13:35 +0200 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2014-08-05 23:13:35 +0200 |
commit | 9fb79c86f0b889b1248b1775a912c47ebe073e57 (patch) | |
tree | a4969e640c3846ecd8fd2547032120872db7ddda /lib | |
parent | d35bfc9a4c2e98305ed2317e009de38bf009cc38 (diff) | |
parent | 48c57b80e3039fe9ccd8eb679e1043e842e0398f (diff) | |
download | nextcloud-server-9fb79c86f0b889b1248b1775a912c47ebe073e57.tar.gz nextcloud-server-9fb79c86f0b889b1248b1775a912c47ebe073e57.zip |
Merge pull request #10191 from owncloud/sharing_rm_trailing_slash
[sharing] remove trailing slash
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 b8e7ffa4536..47b82f2a42d 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, '/'); } } } |