summaryrefslogtreecommitdiffstats
path: root/apps/federation
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 /apps/federation
parentacce1638e5c06e0a3c98a0450fd82df9574524dc (diff)
downloadnextcloud-server-f3360d51c6d069fc873a0b5563c01d37d58727c7.tar.gz
nextcloud-server-f3360d51c6d069fc873a0b5563c01d37d58727c7.zip
Use PHP polyfills
Diffstat (limited to 'apps/federation')
-rw-r--r--apps/federation/api/ocsauthapi.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/federation/api/ocsauthapi.php b/apps/federation/api/ocsauthapi.php
index 42d7113820d..d165a0bd22f 100644
--- a/apps/federation/api/ocsauthapi.php
+++ b/apps/federation/api/ocsauthapi.php
@@ -139,7 +139,7 @@ class OCSAuthAPI {
protected function isValidToken($url, $token) {
$storedToken = $this->dbHandler->getToken($url);
- return StringUtils::equals($storedToken, $token);
+ return hash_equals($storedToken, $token);
}
}