diff --git a/src/scheduler/connectivity.rs b/src/scheduler/connectivity.rs
index 11cb6cc4e..16ec30512 100644
--- a/src/scheduler/connectivity.rs
+++ b/src/scheduler/connectivity.rs
@@ -454,7 +454,8 @@ impl Context {
let domain =
&deltachat_contact_tools::EmailAddress::new(&self.get_primary_self_addr().await?)?
.domain;
- let storage_on_domain = stock_str::storage_on_domain(self, domain).await;
+ let storage_on_domain =
+ escaper::encode_minimal(&stock_str::storage_on_domain(self, domain).await);
ret += &format!("
{storage_on_domain}
");
let quota = self.quota.read().await;
if let Some(quota) = &*quota {
@@ -528,11 +529,15 @@ impl Context {
}
}
} else {
- ret += format!("- Warning: {domain} claims to support quota but gives no information
").as_str();
+ let domain_escaped = escaper::encode_minimal(domain);
+ ret += &format!(
+ "- Warning: {domain_escaped} claims to support quota but gives no information
"
+ );
}
}
Err(e) => {
- ret += format!("- {e}
").as_str();
+ let error_escaped = escaper::encode_minimal(&e.to_string());
+ ret += &format!("- {error_escaped}
");
}
}
} else {