summaryrefslogtreecommitdiffstats
path: root/lib/private/appframework
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2015-12-11 11:40:51 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2015-12-11 11:40:51 +0100
commit6317ba8cb4fef328bf828eab5197cc58f7057221 (patch)
treec54316e17a23a2a29f5a61391fb433c1436a8cf8 /lib/private/appframework
parent86bd95ea1b19a42b2a41f8851f7451d38c92957b (diff)
parent2f3b10f980db9a54fc0022c69387ae5d7d9c0914 (diff)
downloadnextcloud-server-6317ba8cb4fef328bf828eab5197cc58f7057221.tar.gz
nextcloud-server-6317ba8cb4fef328bf828eab5197cc58f7057221.zip
Merge pull request #21135 from owncloud/add-polyfill
Add polyfills for PHP55, PHP56 and PHP70 functionalities
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;