aboutsummaryrefslogtreecommitdiff
path: root/iri.c
diff options
context:
space:
mode:
authorOmar Polo <op@omarpolo.com>2021-02-06 09:33:48 +0000
committerOmar Polo <op@omarpolo.com>2021-02-06 09:33:48 +0000
commit19e7bd00a3d1b2574e3ed149fa354d45e83a8b50 (patch)
treebb5404cd371ebfba2bc6a4a5f9dfeae10be92deb /iri.c
parent8404ec301fed4f0bb5a3d1e7b5a2e184a93cc4e5 (diff)
[iri] accept also : and @
again, to be RFC3986 compliant.
Diffstat (limited to 'iri.c')
-rw-r--r--iri.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/iri.c b/iri.c
index 8501d9a..1d550ef 100644
--- a/iri.c
+++ b/iri.c
@@ -289,6 +289,8 @@ parse_query(struct parser *p)
|| sub_delimiters(*p->iri)
|| *p->iri == '/'
|| *p->iri == '?'
+ || *p->iri == ':'
+ || *p->iri == '@'
|| valid_pct_encoded(p)
|| valid_multibyte_utf8(p))
p->iri++;