-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix host_parser::parse_host function
Do not report error on forbidden < and > characters if they are NFC normalized to valid ones.
- Loading branch information
Showing
3 changed files
with
36 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
[ | ||
{ | ||
"comment": "NFC normalization (forbidden < and > characters are normalized to valid ones)", | ||
"input": "=\u0338", | ||
"output": "xn--1ch" | ||
}, | ||
{ | ||
"input": "<\u0338", | ||
"output": "xn--gdh" | ||
}, | ||
{ | ||
"input": ">\u0338", | ||
"output": "xn--hdh" | ||
}, | ||
{ | ||
"comment": "Same with inserted IDNA ignored code point", | ||
"input": "=\u00AD\u0338", | ||
"output": "xn--1ch" | ||
}, | ||
{ | ||
"input": "<\u00AD\u0338", | ||
"output": "xn--gdh" | ||
}, | ||
{ | ||
"input": ">\u00AD\u0338", | ||
"output": "xn--hdh" | ||
} | ||
] |
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