mirror of
https://github.com/nextcloud/server.git
synced 2026-06-15 19:49:38 -04:00
chore: add note re: legacy file key detection logic
Signed-off-by: Josh <josh.t.richards@gmail.com>
This commit is contained in:
parent
6a010dcfef
commit
e127253245
1 changed files with 1 additions and 0 deletions
|
|
@ -193,6 +193,7 @@ class Encryption implements IEncryptionModule {
|
|||
$useLegacyFileKey = null;
|
||||
if (isset($header['useLegacyFileKey'])) {
|
||||
// NOTE: null means "try both" {@see OCA\Encryption\KeyManager::getFileKey()}
|
||||
// XXX: If 'true' we could probably explicitly treat it as bool true rather than null/both?
|
||||
$useLegacyFileKey = ($header['useLegacyFileKey'] === 'false') ? false : null;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue