-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Require full IPv4 address string to be treated as valid URL (#616)
Task/Issue URL: https://app.asana.com/0/0/1206262563462715/f Description: When an IPv4-like string is passed to URL constructor, require that it contains 4 octets and otherwise return nil. This allows clients to fall back to treating the string as search query and constructing search URLs, instead of making most likely unwanted navigation to an IP address where missing octets are filled with zeros (e.g. 1.4 -> 1.0.0.4).
- Loading branch information
Showing
2 changed files
with
17 additions
and
0 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
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