mirror of
https://github.com/nextcloud/server.git
synced 2026-04-15 22:11:17 -04:00
Fix comparisons in encryption app
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
050fa63380
commit
0ebdf871e0
2 changed files with 4 additions and 4 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue