From 8653d1486243079426a855584111db519af6e544 Mon Sep 17 00:00:00 2001 From: Morris Jobke Date: Wed, 26 Oct 2016 10:13:31 +0200 Subject: Do not expose user data in exceptions & fix typo Signed-off-by: Morris Jobke --- lib/private/Share/Share.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/private/Share') diff --git a/lib/private/Share/Share.php b/lib/private/Share/Share.php index 842dded0671..b9accda728c 100644 --- a/lib/private/Share/Share.php +++ b/lib/private/Share/Share.php @@ -139,9 +139,9 @@ class Share extends Constants { $userManager = \OC::$server->getUserManager(); $userObject = $userManager->get($ownerUser); - if (is_null($ownerUser)) { + if (is_null($userObject)) { \OCP\Util::writeLog('files', ' Backends provided no user object for ' . $ownerUser, \OCP\Util::ERROR); - throw new \OC\User\NoUserException('Backends provided no user object for ' . $ownerUser); + throw new \OC\User\NoUserException('Backends provided no user object'); } $ownerUser = $userObject->getUID(); -- cgit v1.2.3