summaryrefslogtreecommitdiffstats
path: root/lib/private/appframework
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/appframework
parentacce1638e5c06e0a3c98a0450fd82df9574524dc (diff)
downloadnextcloud-server-f3360d51c6d069fc873a0b5563c01d37d58727c7.tar.gz
nextcloud-server-f3360d51c6d069fc873a0b5563c01d37d58727c7.zip
Use PHP polyfills
Diffstat (limited to 'lib/private/appframework')
-rw-r--r--lib/private/appframework/http/request.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/appframework/http/request.php b/lib/private/appframework/http/request.php
index 2bbb70db0f8..6ba1d8f644d 100644
--- a/lib/private/appframework/http/request.php
+++ b/lib/private/appframework/http/request.php
@@ -447,7 +447,7 @@ class Request implements \ArrayAccess, \Countable, IRequest {
$deobfuscatedToken = base64_decode($obfuscatedToken) ^ $secret;
// Check if the token is valid
- if(\OCP\Security\StringUtils::equals($deobfuscatedToken, $this->items['requesttoken'])) {
+ if(hash_equals($deobfuscatedToken, $this->items['requesttoken'])) {
return true;
} else {
return false;