From 1a280a9e2375ec4ef33b61e0443d919098e19561 Mon Sep 17 00:00:00 2001 From: Marc Barry <4965634+marc-barry@users.noreply.github.com> Date: Fri, 9 Feb 2024 13:48:21 -0500 Subject: [PATCH] Sanitize user input for logs. --- apps/impl-nodejs/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/impl-nodejs/app.js b/apps/impl-nodejs/app.js index 12682b1..a178f5a 100644 --- a/apps/impl-nodejs/app.js +++ b/apps/impl-nodejs/app.js @@ -39,7 +39,7 @@ const makeRequest = (options, ca) => { }); req.on('error', (e) => { - console.error(`Problem with request: ${e.message}`); + console.error(`Problem with request: ${e.message.replace(/\n|\r/g, "")}`); process.exit(1); });