Spiegel von
https://github.com/dani-garcia/vaultwarden.git
synchronisiert 2024-11-22 05:10:29 +01:00
Fix bug where secureNotes is empty (#4730)
Dieser Commit ist enthalten in:
Ursprung
6fedfceaa9
Commit
a4ab014ade
1 geänderte Dateien mit 4 neuen und 2 gelöschten Zeilen
|
@ -189,9 +189,11 @@ impl Cipher {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Fix secure note issues when data is `{}`
|
// Fix secure note issues when data is invalid
|
||||||
// This breaks at least the native mobile clients
|
// This breaks at least the native mobile clients
|
||||||
if self.atype == 2 && (self.data.eq("{}") || self.data.to_ascii_lowercase().eq("{\"type\":null}")) {
|
if self.atype == 2
|
||||||
|
&& (self.data.is_empty() || self.data.eq("{}") || self.data.to_ascii_lowercase().eq("{\"type\":null}"))
|
||||||
|
{
|
||||||
type_data_json = json!({"type": 0});
|
type_data_json = json!({"type": 0});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Laden …
In neuem Issue referenzieren