commit 4f147cdf76dda78f6e60c93ee92d136eca0e4817 from: Omar Polo date: Sun Dec 25 18:58:28 2022 UTC fix add_proxy path check IH_PATH is almost always defined, check that the path is the empty string. commit - 870edfb9f7fcd981eb681c9c59072f82c9a6891f commit + 4f147cdf76dda78f6e60c93ee92d136eca0e4817 blob - a4a0e28c016e659b27148b40613eaac5ffc3ea6b blob + e731c0f6184541a7dd7fe3ed9f16312568cdc2cb --- parse.y +++ parse.y @@ -477,7 +477,8 @@ add_proxy(char *proto, char *proxy) return; } - if (iri.iri_flags & (IH_PATH|IH_QUERY)) { + if ((iri.iri_flags & (IH_QUERY|IH_FRAGMENT)) || + iri.iri_path[0] != '\0') { yyerror("proxy url can't have path, query or fragments"); return; }