chore: add note re: legacy file key detection logic

Signed-off-by: Josh <josh.t.richards@gmail.com>
This commit is contained in:
Josh 2025-10-07 11:17:20 -04:00 committed by GitHub
parent 6a010dcfef
commit e127253245
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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;
}