diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2014-01-21 11:32:30 +0100 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2014-01-21 11:32:30 +0100 |
commit | 23a4d0d44ef8b918f054e7ad608d04b2e9a68995 (patch) | |
tree | 97e921688f32f8b5a707e4d81d5486d9793a3558 /apps/files_sharing/public.php | |
parent | 0f794b6889d05508c86449dacdee3e05bd47d071 (diff) | |
download | nextcloud-server-23a4d0d44ef8b918f054e7ad608d04b2e9a68995.tar.gz nextcloud-server-23a4d0d44ef8b918f054e7ad608d04b2e9a68995.zip |
OC_Util::setupFS($user) will create a data dir for the given string - no matter if the user really exists - OCP\JSON::checkUserExists($owner); introduces a ready to use check which will bail out with an JSON error
Diffstat (limited to 'apps/files_sharing/public.php')
-rw-r--r-- | apps/files_sharing/public.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/files_sharing/public.php b/apps/files_sharing/public.php index d050efd5b32..80dd708ee51 100644 --- a/apps/files_sharing/public.php +++ b/apps/files_sharing/public.php @@ -43,10 +43,10 @@ if (isset($_GET['t'])) { $shareOwner = $linkItem['uid_owner']; $path = null; $rootLinkItem = OCP\Share::resolveReShare($linkItem); - $fileOwner = $rootLinkItem['uid_owner']; - if (isset($fileOwner)) { + if (isset($rootLinkItem['uid_owner'])) { + OCP\JSON::checkUserExists($rootLinkItem['uid_owner']); OC_Util::tearDownFS(); - OC_Util::setupFS($fileOwner); + OC_Util::setupFS($rootLinkItem['uid_owner']); $path = \OC\Files\Filesystem::getPath($linkItem['file_source']); } } |