diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2015-12-11 11:40:51 +0100 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2015-12-11 11:40:51 +0100 |
commit | 6317ba8cb4fef328bf828eab5197cc58f7057221 (patch) | |
tree | c54316e17a23a2a29f5a61391fb433c1436a8cf8 /lib/private/appframework | |
parent | 86bd95ea1b19a42b2a41f8851f7451d38c92957b (diff) | |
parent | 2f3b10f980db9a54fc0022c69387ae5d7d9c0914 (diff) | |
download | nextcloud-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.php | 2 |
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; |