-
Notifications
You must be signed in to change notification settings - Fork 139
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reject non-IPv4 domains that end in numbers
If the last domain label of a URL's domain is numeric, it's parsed as IPv4, and if that fails, it's rejected. E.g., "foo.0", "bar.0.09", "a.1.2.0x.", "1.2.3.4.5" were all previously considered valid non-IPv4 domains, but are now all rejected. Tests: web-platform-tests/wpt#29666. Fixes #560. Co-authored-by: Domenic Denicola <d@domenic.me> Co-authored-by: Timothy Gu <timothygu99@gmail.com> Co-authored-by: Anne van Kesteren <annevk@annevk.nl>
- Loading branch information
1 parent
0672f2e
commit ab0e820
Showing
1 changed file
with
38 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters