Skip to content

Commit 035ceb5

Browse files
mgallienbackportbot[bot]
authored andcommitted
fix(secureFileDrop): fix wrong conversion between or from base64
Close #9186 Signed-off-by: Matthieu Gallien <[email protected]>
1 parent 7fafa69 commit 035ceb5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/libsync/foldermetadata.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -792,7 +792,8 @@ bool FolderMetadata::parseFileDropPart(const QJsonDocument &doc)
792792
if (userParsedId == _account->davUser()) {
793793
const auto fileDropEntryUser = UserWithFileDropEntryAccess{
794794
userParsedId,
795-
decryptDataWithPrivateKey(QByteArray::fromBase64(userParsed.value(usersEncryptedFiledropKey).toByteArray()))};
795+
QByteArray::fromBase64(decryptDataWithPrivateKey(userParsed.value(usersEncryptedFiledropKey).toByteArray()))
796+
};
796797
if (!fileDropEntryUser.isValid()) {
797798
qCWarning(lcCseMetadata()) << "Could not parse filedrop data. encryptedFiledropKey decryption failed";
798799
_account->reportClientStatus(OCC::ClientStatusReportingStatus::E2EeError_GeneralError);

0 commit comments

Comments
 (0)