Skip to content

Commit

Permalink
Sanitize user input for logs.
Browse files Browse the repository at this point in the history
  • Loading branch information
marc-barry committed Feb 9, 2024
1 parent 5bce3a2 commit 1a280a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/impl-nodejs/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});

Expand Down

0 comments on commit 1a280a9

Please sign in to comment.