Skip to content

Commit

Permalink
Merge pull request #23 from qpoint-io/marc-barry/log-injection
Browse files Browse the repository at this point in the history
Sanitize user input for logs.
  • Loading branch information
marc-barry authored Feb 9, 2024
2 parents 5bce3a2 + 1a280a9 commit bfd5175
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 bfd5175

Please sign in to comment.