| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 2de9868 commit 69aaf8b
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -427,10 +427,7 @@ Url.prototype.parse = function parse(url, parseQueryString, slashesDenoteHost) { | |||
| 427 | 427 | // It only converts parts of the domain name that | |
| 428 | 428 | // have non-ASCII characters, i.e. it doesn't matter if | |
| 429 | 429 | // you call it with a domain that already is ASCII-only. | |
| 430 | - | ||
| 431 | - // Use lenient mode (`true`) to try to support even non-compliant | ||
| 432 | - // URLs. | ||
| 433 | - this.hostname = toASCII(this.hostname, true); | ||
| 430 | + this.hostname = toASCII(this.hostname); | ||
| 434 | 431 | ||
| 435 | 432 | // Prevent two potential routes of hostname spoofing. | |
| 436 | 433 | // 1. If this.hostname is empty, it must have become empty due to toASCII | |
| Back | FazBrowse Home | New Git URL |
0 commit comments