diff options
author | Joas Schilling <coding@schilljs.com> | 2017-05-10 13:58:15 +0200 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2017-08-01 13:54:07 +0200 |
commit | 0ebdf871e02653bf7e65bf5bdefaec7f92d3c677 (patch) | |
tree | 27ae1b57b274b93cd9426f4c0bce5df40690a9d8 /apps/encryption | |
parent | 050fa633800ed6fd922732b8461cf12b380818a1 (diff) | |
download | nextcloud-server-0ebdf871e02653bf7e65bf5bdefaec7f92d3c677.tar.gz nextcloud-server-0ebdf871e02653bf7e65bf5bdefaec7f92d3c677.zip |
Fix comparisons in encryption app
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps/encryption')
-rw-r--r-- | apps/encryption/lib/Crypto/Crypt.php | 2 | ||||
-rw-r--r-- | apps/encryption/lib/Crypto/Encryption.php | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/apps/encryption/lib/Crypto/Crypt.php b/apps/encryption/lib/Crypto/Crypt.php index 9a9ac27b96f..6e1b7387c88 100644 --- a/apps/encryption/lib/Crypto/Crypt.php +++ b/apps/encryption/lib/Crypto/Crypt.php @@ -605,7 +605,7 @@ class Crypt { $element = array_shift($exploded); - while ($element != self::HEADER_END) { + while ($element !== self::HEADER_END) { $result[$element] = array_shift($exploded); $element = array_shift($exploded); } diff --git a/apps/encryption/lib/Crypto/Encryption.php b/apps/encryption/lib/Crypto/Encryption.php index 1f8c8a8012e..4d20c103a5d 100644 --- a/apps/encryption/lib/Crypto/Encryption.php +++ b/apps/encryption/lib/Crypto/Encryption.php @@ -449,13 +449,13 @@ class Encryption implements IEncryptionModule { return false; } - if ($parts[2] == 'files') { + if ($parts[2] === 'files') { return true; } - if ($parts[2] == 'files_versions') { + if ($parts[2] === 'files_versions') { return true; } - if ($parts[2] == 'files_trashbin') { + if ($parts[2] === 'files_trashbin') { return true; } |