aboutsummaryrefslogtreecommitdiff
path: root/iri.c
diff options
context:
space:
mode:
authorOmar Polo <op@omarpolo.com>2021-01-29 17:26:23 +0000
committerOmar Polo <op@omarpolo.com>2021-01-29 17:26:23 +0000
commit117ac52cdd4f45bd5402686b9d4f1d91c32cb1dd (patch)
treed65ff444e5b0114180623e58edd0ad7d90bde145 /iri.c
parenta2fd80132769e268bee6af754eca6eb13035de78 (diff)
accept a wider range of UNICODE codepoints while parsing hostnames
Diffstat (limited to 'iri.c')
-rw-r--r--iri.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/iri.c b/iri.c
index 206f106..c9069fb 100644
--- a/iri.c
+++ b/iri.c
@@ -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);