diff options
author | Lukas Reschke <lukas@statuscode.ch> | 2016-10-07 16:23:05 +0200 |
---|---|---|
committer | Lukas Reschke <lukas@statuscode.ch> | 2016-10-07 16:23:05 +0200 |
commit | ab4353457da60191f391082e8ba46f3985d988f3 (patch) | |
tree | d280c1e4b8dcebe719f075dc8f7d75a5a6b6cd7a /lib/private/Log.php | |
parent | bccc4e618a58281f390b6baa88cc0b03b1e40172 (diff) | |
download | nextcloud-server-ab4353457da60191f391082e8ba46f3985d988f3.tar.gz nextcloud-server-ab4353457da60191f391082e8ba46f3985d988f3.zip |
Default to empty string
Otherwise `null` is returned which leads to a ton of similar error messages if the log condition setting is enabled.:
```
{"reqId":"3wVBarnDfOV3qkI1bVCU","remoteAddr":"89.98.78.41","app":"PHP","message":"hash_equals(): Expected user_string to be a string, null given at \/var\/www\/html\/lib\/private\/Log.php#275","level":3,"time":"2016-10-07T14:22:15+00:00","method":"PROPFIND","url":"\/remote.php\/webdav\/","user":"icewind"}
```
Diffstat (limited to 'lib/private/Log.php')
-rw-r--r-- | lib/private/Log.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Log.php b/lib/private/Log.php index b76cb4f8c28..ef1b70d3cb9 100644 --- a/lib/private/Log.php +++ b/lib/private/Log.php @@ -277,7 +277,7 @@ class Log implements ILogger { $request = \OC::$server->getRequest(); // if token is found in the request change set the log condition to satisfied - if($request && hash_equals($logCondition['shared_secret'], $request->getParam('log_secret'))) { + if($request && hash_equals($logCondition['shared_secret'], $request->getParam('log_secret', ''))) { $this->logConditionSatisfied = true; } } |