summaryrefslogtreecommitdiffstats
path: root/lib/private/log.php
diff options
context:
space:
mode:
authorLukas Reschke <lukas@owncloud.com>2015-12-11 06:17:47 +0100
committerLukas Reschke <lukas@owncloud.com>2015-12-11 08:47:36 +0100
commitf3360d51c6d069fc873a0b5563c01d37d58727c7 (patch)
tree61ae5808a8bac6b3bf03be520465bf2da43f72a9 /lib/private/log.php
parentacce1638e5c06e0a3c98a0450fd82df9574524dc (diff)
downloadnextcloud-server-f3360d51c6d069fc873a0b5563c01d37d58727c7.tar.gz
nextcloud-server-f3360d51c6d069fc873a0b5563c01d37d58727c7.zip
Use PHP polyfills
Diffstat (limited to 'lib/private/log.php')
-rw-r--r--lib/private/log.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/log.php b/lib/private/log.php
index ee5d61e98df..a722243dc69 100644
--- a/lib/private/log.php
+++ b/lib/private/log.php
@@ -227,7 +227,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 && StringUtils::equals($request->getParam('log_secret'), $logCondition['shared_secret'])) {
+ if($request && hash_equals($logCondition['shared_secret'], $request->getParam('log_secret'))) {
$this->logConditionSatisfied = true;
}
}