Spiegel von
https://github.com/dani-garcia/vaultwarden.git
synchronisiert 2024-06-02 22:08:59 +02:00
Merge 9e4f0a2b41
into 2ad33ec97f
Dieser Commit ist enthalten in:
Commit
012cbb97b8
|
@ -379,8 +379,8 @@ pub async fn update_cipher_from_data(
|
||||||
}
|
}
|
||||||
|
|
||||||
if let Some(note) = &data.Notes {
|
if let Some(note) = &data.Notes {
|
||||||
if note.len() > 10_000 {
|
if note.len() > 50_000 {
|
||||||
err!("The field Notes exceeds the maximum encrypted value length of 10000 characters.")
|
err!("The field Notes exceeds the maximum encrypted value length of 50000 characters.")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -82,11 +82,11 @@ impl Cipher {
|
||||||
let mut validation_errors = serde_json::Map::new();
|
let mut validation_errors = serde_json::Map::new();
|
||||||
for (index, cipher) in cipher_data.iter().enumerate() {
|
for (index, cipher) in cipher_data.iter().enumerate() {
|
||||||
if let Some(note) = &cipher.Notes {
|
if let Some(note) = &cipher.Notes {
|
||||||
if note.len() > 10_000 {
|
if note.len() > 50_000 {
|
||||||
validation_errors.insert(
|
validation_errors.insert(
|
||||||
format!("Ciphers[{index}].Notes"),
|
format!("Ciphers[{index}].Notes"),
|
||||||
serde_json::to_value([
|
serde_json::to_value([
|
||||||
"The field Notes exceeds the maximum encrypted value length of 10000 characters.",
|
"The field Notes exceeds the maximum encrypted value length of 50000 characters.",
|
||||||
])
|
])
|
||||||
.unwrap(),
|
.unwrap(),
|
||||||
);
|
);
|
||||||
|
|
Laden …
In neuem Issue referenzieren