diff options
author | Morris Jobke <hey@morrisjobke.de> | 2016-10-26 10:13:31 +0200 |
---|---|---|
committer | Lukas Reschke <lukas@statuscode.ch> | 2016-11-02 22:21:47 +0100 |
commit | 8653d1486243079426a855584111db519af6e544 (patch) | |
tree | 4fcf9741477e7ff5b9dfde2aeb51ef3e8b3a3713 /lib/private/Share | |
parent | 889e0a574b3eb323066bbcfb79ef06c23e36b53f (diff) | |
download | nextcloud-server-8653d1486243079426a855584111db519af6e544.tar.gz nextcloud-server-8653d1486243079426a855584111db519af6e544.zip |
Do not expose user data in exceptions & fix typo
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'lib/private/Share')
-rw-r--r-- | lib/private/Share/Share.php | 4 |
1 files changed, 2 insertions, 2 deletions
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(); |