Commit Diff


commit - a2fd80132769e268bee6af754eca6eb13035de78
commit + 117ac52cdd4f45bd5402686b9d4f1d91c32cb1dd
blob - 206f106babbad5247d24eb0ee2da4f0c8b63b44e
blob + c9069fb055aa4c97270d309f06a861636d5ab584
--- iri.c
+++ 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);