diff options
-rw-r--r-- | apps/files_sharing/lib/api.php | 1 | ||||
-rw-r--r-- | lib/private/share/share.php | 3 |
2 files changed, 2 insertions, 2 deletions
diff --git a/apps/files_sharing/lib/api.php b/apps/files_sharing/lib/api.php index faf141db25f..8556036f118 100644 --- a/apps/files_sharing/lib/api.php +++ b/apps/files_sharing/lib/api.php @@ -64,7 +64,6 @@ class Api { $share['isPreviewAvailable'] = true; } } - $newShares[] = $share; } return new \OC_OCS_Result($shares); } 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, '/'); } } } |