Escape request values in log messages (#7921)

This commit is contained in:
Daniel García authored and GitHub committed 2026-11-01 22:38:18 +01:00
1 parent 5d870b796f
commit 6ed6921cc2
9 files changed
+41 -24

No files matched your search

+2 -2
View File
@@ -266,8 +266,8 @@ pub async fn exchange_code(
(_, Some(re)) => {
let error_msg = format!(
"SSO authorization failed: {}, {}",
re.error,
re.error_description.as_ref().unwrap_or(&String::new())
re.error.escape_debug(),
re.error_description.as_deref().unwrap_or_default().escape_debug()
);
sso_auth.delete(conn).await?;
err!(error_msg);