Skip to content
Snippets Groups Projects
Unverified Commit 5bb06723 authored by Vincent Petry's avatar Vincent Petry
Browse files

Hack to prevent infinite loop with LDAP + logging

Forward port of a50619200c6a08929dbe802118a6afadb376b866 to 9.1/master
parent c6183f16
No related branches found
No related tags found
No related merge requests found
......@@ -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',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment