commit 37d0792a7d96b356950c6b1c6d1ad44e0bf76d3c
parent 226da67bc088587a5399a2cd2a7f7cabd23b4ec0
Author: Daniel GarcĂa <dani-garcia@users.noreply.github.com>
Date: Sun, 4 Dec 2022 23:15:08 +0100
Merge branch 'BlackDex-issue-2937'
Diffstat:
1 file changed, 6 insertions(+), 0 deletions(-)
diff --git a/src/api/core/ciphers.rs b/src/api/core/ciphers.rs
@@ -366,6 +366,12 @@ pub async fn update_cipher_from_data(
err!("Organization mismatch. Please resync the client before updating the cipher")
}
+ if let Some(note) = &data.Notes {
+ if note.len() > 10_000 {
+ err!("The field Notes exceeds the maximum encrypted value length of 10000 characters.")
+ }
+ }
+
// Check if this cipher is being transferred from a personal to an organization vault
let transfer_cipher = cipher.organization_uuid.is_none() && data.OrganizationId.is_some();