fix(contact): ignore empty honeypot values even if String exists

This commit is contained in:
2025-11-27 15:39:36 +01:00
parent cffdab1be6
commit 67b2e64b32
2 changed files with 15 additions and 5 deletions
+3 -1
View File
@@ -161,7 +161,9 @@ impl ContactApi {
remote_addr: Option<poem::web::Data<&poem::web::RemoteAddr>>,
) -> ContactApiResponse {
let body = body.0;
if body.honeypot.is_some() {
if let Some(ref honeypot) = body.honeypot
&& !honeypot.trim().is_empty()
{
tracing::event!(
target: "backend::contact",
tracing::Level::INFO,