From e127253245dfd544ee52fad4d8cf1537fe791d11 Mon Sep 17 00:00:00 2001 From: Josh Date: Tue, 7 Oct 2025 11:17:20 -0400 Subject: [PATCH] chore: add note re: legacy file key detection logic Signed-off-by: Josh --- apps/encryption/lib/Crypto/Encryption.php | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/encryption/lib/Crypto/Encryption.php b/apps/encryption/lib/Crypto/Encryption.php index 946118619c9..5e110482818 100644 --- a/apps/encryption/lib/Crypto/Encryption.php +++ b/apps/encryption/lib/Crypto/Encryption.php @@ -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; }