Fix PATH_INFO to be full relative path. Thanks bob. - geomyidae - A small C-based gopherd. HTML git clone git://bitreich.org/geomyidae/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/geomyidae/ DIR Log DIR Files DIR Refs DIR Tags DIR README DIR LICENSE --- DIR commit e418a673b849daeac362148c6dfcb3dc9355f4dc DIR parent 00a21ba56a07fa0eaefd27c626c4605fce3e042d HTML Author: Christoph Lohmann <20h@r-36.net> Date: Sat, 22 Jul 2023 19:09:12 +0200 Fix PATH_INFO to be full relative path. Thanks bob. Diffstat: M ind.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- DIR diff --git a/ind.c b/ind.c @@ -547,7 +547,7 @@ setcgienviron(char *file, char *path, char *port, char *base, char *args, unsetenv("CONTENT_TYPE"); setenv("GATEWAY_INTERFACE", "CGI/1.1", 1); /* TODO: Separate, if run like rest.dcgi. */ - setenv("PATH_INFO", file, 1); + setenv("PATH_INFO", path+strlen(base), 1); setenv("PATH_TRANSLATED", path, 1); setenv("QUERY_STRING", args, 1);