From 9f576d750933971c6bbba3b6a085d8340d9dfa3d Mon Sep 17 00:00:00 2001 From: Lucien Cartier-Tilet Date: Mon, 1 Jun 2026 23:58:23 +0200 Subject: [PATCH] fix(contact): sanatize user-supplied data in logs --- src/route/contact/mod.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/route/contact/mod.rs b/src/route/contact/mod.rs index 662314c..0f331ad 100644 --- a/src/route/contact/mod.rs +++ b/src/route/contact/mod.rs @@ -182,9 +182,10 @@ impl ContactApi { Ok(()) => { tracing::event!( target: "backend::contact", - tracing::Level::INFO, "Message from \"{} <{}>\" sent successfully", - body.name, - body.email + tracing::Level::INFO, + name = %body.name, + email = %body.email, + "Contact form message sent successfully" ); ContactApiResponse::Ok(ContactResponse::success().into()) }