aboutsummaryrefslogtreecommitdiff
path: root/iri.c
diff options
context:
space:
mode:
authorOmar Polo <op@omarpolo.com>2022-07-04 08:15:39 +0000
committerOmar Polo <op@omarpolo.com>2022-07-04 08:15:39 +0000
commit5e41063f1b0cd8f096ec925777bc4cf4ef6ba828 (patch)
tree466aab4a55073ff0ae293e9b290caeafe2ac8bf5 /iri.c
parentdf9b3790817d4d64fee06e046a479a67d4a91b13 (diff)
bugfix: allow @ and : in paths
gmid would disallow the '@' and ':' characters in paths (unless percent-encoded.) Issue reported by freezr.
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 ae292d0..f34b800 100644
--- a/iri.c
+++ b/iri.c
@@ -352,6 +352,8 @@ parse_path(struct parser *p)
while (unreserved(*p->iri)
|| sub_delimiters(*p->iri)
+ || *p->iri == '@'
+ || *p->iri == ':'
|| *p->iri == '/'
|| parse_pct_encoded(p)
|| valid_multibyte_utf8(p))