1
0
Fork 0
mirror of https://github.com/dani-garcia/vaultwarden.git synced 2025-08-01 16:49:09 +00:00

Invert bool

This commit is contained in:
1fexd 2024-05-05 17:17:45 +02:00
commit 7272483a87
No known key found for this signature in database
GPG key ID: B459DD424E49FAAD

View file

@ -90,9 +90,9 @@ fn icon_external(domain: &str) -> Option<Redirect> {
async fn icon_internal(domain: &str) -> Cached<(ContentType, Vec<u8>)> {
const FALLBACK_ICON: &[u8] = include_bytes!("../static/images/fallback-icon.png");
let is_valid = is_valid_domain(domain);
if !is_valid || is_domain_blacklisted(domain) {
if !is_valid {
let invalid = !is_valid_domain(domain);
if invalid || is_domain_blacklisted(domain) {
if invalid {
warn!("Invalid domain: {}", domain);
}