commit 5cb6cd4da7c71adf2c773f9cc29f8ad523e8fbfa from: Omar Polo date: Sat Dec 24 22:03:41 2022 UTC iri: fix path check path should *start* with "/" to enter that branch, not be exactly "/". commit - a655e85afdbbaa364ec9f8ca1236b18846d0775b commit + 5cb6cd4da7c71adf2c773f9cc29f8ad523e8fbfa blob - 331800323cf83091bef045c18098a5c25c7e35cb blob + 9ec91f67cc36f4f79418a948755e913f84c30c64 --- iri.c +++ iri.c @@ -616,7 +616,7 @@ iri_parse(const char *base, const char *str, struct ir } cpfields(iri, &iparsed, IH_QUERY); - if ((iparsed.iri_flags & IH_PATH) && !strcmp(iparsed.iri_path, "/")) + if ((iparsed.iri_flags & IH_PATH) && *iparsed.iri_path == '/') cpfields(iri, &iparsed, IH_PATH); else { if (!(ibase.iri_flags & IH_PATH))