summaryrefslogtreecommitdiffstats
path: root/lib/private/Share
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2016-10-26 10:13:31 +0200
committerLukas Reschke <lukas@statuscode.ch>2016-11-02 22:21:47 +0100
commit8653d1486243079426a855584111db519af6e544 (patch)
tree4fcf9741477e7ff5b9dfde2aeb51ef3e8b3a3713 /lib/private/Share
parent889e0a574b3eb323066bbcfb79ef06c23e36b53f (diff)
downloadnextcloud-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.php4
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();