Skip to content

Commit

Permalink
cast value to string after first check
Browse files Browse the repository at this point in the history
  • Loading branch information
NickOvt committed May 6, 2024
1 parent a917584 commit 3c5660b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions api.js
Expand Up @@ -108,6 +108,9 @@ const serverOptions = {
return;
}

// cast value to string
value = util.inspect(req.params[key], false, 3).trim();

if (['password'].includes(key)) {
value = '***';
} else if (value.length > 128) {
Expand Down

0 comments on commit 3c5660b

Please sign in to comment.