Skip to content

Commit

Permalink
Merge pull request #6543 from nextcloud/backport/6540/stable-3.12
Browse files Browse the repository at this point in the history
[stable-3.12] Bugfix. E2EE. Use 'double' for legacy metadata.
  • Loading branch information
allexzander authored Mar 18, 2024
2 parents a5a63b3 + b067a9c commit 36af16d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libsync/foldermetadata.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -694,7 +694,7 @@ QByteArray FolderMetadata::encryptedMetadataLegacy()
// multiple toBase64() just to keep with the old (wrong way)
const auto encryptedMetadataKey = encryptDataWithPublicKey(metadataKeyForEncryption().toBase64().toBase64(), _account->e2e()->_publicKey).toBase64();
const QJsonObject metadata{
{versionKey, QString::number(version, 'f', 1)},
{versionKey, version},
{metadataKeyKey, QJsonValue::fromVariant(encryptedMetadataKey)},
{"checksum", QJsonValue::fromVariant(computeMetadataKeyChecksum(encryptedMetadataKey))},
};
Expand Down

0 comments on commit 36af16d

Please sign in to comment.