accept a wider range of UNICODE codepoints while parsing hostnames

This commit is contained in:
Omar Polo 2021-01-29 17:26:23 +00:00
parent a2fd801327
commit 117ac52cdd
1 changed files with 2 additions and 1 deletions

3
iri.c
View File

@ -147,7 +147,8 @@ parse_authority(struct parser *p)
while (unreserved(*p->iri)
|| sub_delimiters(*p->iri)
|| parse_pct_encoded(p)) {
|| parse_pct_encoded(p)
|| valid_multibyte_utf8(p)) {
/* normalize the host name. */
if (*p->iri < 0x7F)
*p->iri = tolower(*p->iri);