Skip to content

Commit 9dd574c

Browse files
anonrignodejs-github-bot
authored andcommitted
lib: remove invalid parameter to toASCII
PR-URL: #48878 Refs: #48873 Refs: #48855 Refs: #48850 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]>
1 parent f4863fa commit 9dd574c

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

lib/url.js

+1-4
Original file line numberDiff line numberDiff line change
@@ -401,10 +401,7 @@ Url.prototype.parse = function parse(url, parseQueryString, slashesDenoteHost) {
401401
// It only converts parts of the domain name that
402402
// have non-ASCII characters, i.e. it doesn't matter if
403403
// you call it with a domain that already is ASCII-only.
404-
405-
// Use lenient mode (`true`) to try to support even non-compliant
406-
// URLs.
407-
this.hostname = toASCII(this.hostname, true);
404+
this.hostname = toASCII(this.hostname);
408405

409406
// Prevent two potential routes of hostname spoofing.
410407
// 1. If this.hostname is empty, it must have become empty due to toASCII

0 commit comments

Comments
 (0)