Skip to content

Commit

Permalink
errors: removed input from ERR_INVALID_URL message
Browse files Browse the repository at this point in the history
Avoid potentially huge messages and leaked secrets.
  • Loading branch information
moander authored May 9, 2021
1 parent 7c8a608 commit cb10e91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/internal/errors.js
Original file line number Diff line number Diff line change
Expand Up @@ -1265,7 +1265,7 @@ E('ERR_INVALID_TUPLE', '%s must be an iterable %s tuple', TypeError);
E('ERR_INVALID_URI', 'URI malformed', URIError);
E('ERR_INVALID_URL', function(input) {
this.input = input;
return `Invalid URL: ${input}`;
return 'Invalid URL';
}, TypeError);
E('ERR_INVALID_URL_SCHEME',
(expected) => {
Expand Down

0 comments on commit cb10e91

Please sign in to comment.