aboutsummaryrefslogtreecommitdiff
path: root/iri.c
diff options
context:
space:
mode:
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);