diff options
author | Robin McCorkell <rmccorkell@owncloud.com> | 2015-08-18 13:41:47 +0100 |
---|---|---|
committer | Robin McCorkell <rmccorkell@owncloud.com> | 2015-08-18 13:41:47 +0100 |
commit | 6e47661afdc4e980bd43924ae0871c4f650209f4 (patch) | |
tree | 770ab2898520c1b643b0af133a148829e88f05e9 | |
parent | 03965053c34bc0fe673ea0da82ac83ff68ce3fa3 (diff) | |
download | nextcloud-server-6e47661afdc4e980bd43924ae0871c4f650209f4.tar.gz nextcloud-server-6e47661afdc4e980bd43924ae0871c4f650209f4.zip |
Fix extracting basename from path in sharing
-rw-r--r-- | apps/files_sharing/lib/share/folder.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_sharing/lib/share/folder.php b/apps/files_sharing/lib/share/folder.php index e18839b577d..ef42393f58d 100644 --- a/apps/files_sharing/lib/share/folder.php +++ b/apps/files_sharing/lib/share/folder.php @@ -39,7 +39,7 @@ class OC_Share_Backend_Folder extends OC_Share_Backend_File implements OCP\Share $shares = \OCP\Share::getItemSharedWithUser('folder', $parent, $shareWith, $owner); if ($shares) { foreach ($shares as $share) { - $name = substr($share['path'], strrpos($share['path'], '/') + 1); + $name = basename($share['path']); $share['collection']['path'] = $name; $share['collection']['item_type'] = 'folder'; $share['file_path'] = $name; |