diff options
author | Vincent Petry <pvince81@owncloud.com> | 2016-05-25 17:35:52 +0200 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2016-05-31 11:38:41 +0200 |
commit | 5bb06723b0bbe3059d6bcb3a604371ab1530b492 (patch) | |
tree | 171ee97540a17fa9931545028c23919d69a6f1b9 /lib/private | |
parent | c6183f167cb6ad3171c7e7e652bf14d2a3471711 (diff) | |
download | nextcloud-server-5bb06723b0bbe3059d6bcb3a604371ab1530b492.tar.gz nextcloud-server-5bb06723b0bbe3059d6bcb3a604371ab1530b492.zip |
Hack to prevent infinite loop with LDAP + logging
Forward port of a50619200c6a08929dbe802118a6afadb376b866 to 9.1/master
Diffstat (limited to 'lib/private')
-rw-r--r-- | lib/private/Log/Owncloud.php | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/private/Log/Owncloud.php b/lib/private/Log/Owncloud.php index 0a0902b7fa1..07106be22b1 100644 --- a/lib/private/Log/Owncloud.php +++ b/lib/private/Log/Owncloud.php @@ -94,11 +94,10 @@ class Owncloud { $url = ($request->getRequestUri() !== '') ? $request->getRequestUri() : '--'; $method = is_string($request->getMethod()) ? $request->getMethod() : '--'; if(\OC::$server->getConfig()->getSystemValue('installed', false)) { - $userObj = \OC::$server->getUserSession()->getUser(); + $user = (\OC_User::getUser()) ? \OC_User::getUser() : '--'; } else { - $userObj = null; + $user = '--'; } - $user = !is_null($userObj) ? $userObj->getUID() : '--'; $entry = compact( 'reqId', 'remoteAddr', |