diff options
author | Omar Polo <op@omarpolo.com> | 2021-01-29 17:26:23 +0000 |
---|---|---|
committer | Omar Polo <op@omarpolo.com> | 2021-01-29 17:26:23 +0000 |
commit | 117ac52cdd4f45bd5402686b9d4f1d91c32cb1dd (patch) | |
tree | d65ff444e5b0114180623e58edd0ad7d90bde145 /iri.c | |
parent | a2fd80132769e268bee6af754eca6eb13035de78 (diff) |
accept a wider range of UNICODE codepoints while parsing hostnames
Diffstat (limited to 'iri.c')
-rw-r--r-- | iri.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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); |