diff options
author | Morris Jobke <hey@morrisjobke.de> | 2014-10-29 15:59:42 +0100 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2014-10-29 15:59:42 +0100 |
commit | 7d10ec41e6817472eb831c3891f7d0a0d514037c (patch) | |
tree | ac28d8e838d76882eb54b20bd4816f8087b9470a /apps/files_sharing | |
parent | 32071e8c062af055aed293fb70ac6df2a4d14515 (diff) | |
parent | e8f9b929bd04c4228299118a5cca72148d64fed2 (diff) | |
download | nextcloud-server-7d10ec41e6817472eb831c3891f7d0a0d514037c.tar.gz nextcloud-server-7d10ec41e6817472eb831c3891f7d0a0d514037c.zip |
Merge pull request #11835 from owncloud/enc-fixmovingsharekeystofolder
Fix moving share keys as non-owner to subdir
Diffstat (limited to 'apps/files_sharing')
-rw-r--r-- | apps/files_sharing/lib/sharedstorage.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_sharing/lib/sharedstorage.php b/apps/files_sharing/lib/sharedstorage.php index a2b485a2ca1..5ce15d9a012 100644 --- a/apps/files_sharing/lib/sharedstorage.php +++ b/apps/files_sharing/lib/sharedstorage.php @@ -300,7 +300,7 @@ class Shared extends \OC\Files\Storage\Common implements ISharedStorage { $pathinfo = pathinfo($relPath1); // for part files we need to ask for the owner and path from the parent directory because // the file cache doesn't return any results for part files - if ($pathinfo['extension'] === 'part') { + if (isset($pathinfo['extension']) && $pathinfo['extension'] === 'part') { list($user1, $path1) = \OCA\Files_Sharing\Helper::getUidAndFilename($pathinfo['dirname']); $path1 = $path1 . '/' . $pathinfo['basename']; } else { |