geomyidae

A small C-based gopherd. (gopher://bitreich.org/1/scm/geomyidae)
git clone git://r-36.net/geomyidae
Log | Files | Refs | README | LICENSE

commit e418a673b849daeac362148c6dfcb3dc9355f4dc
parent 00a21ba56a07fa0eaefd27c626c4605fce3e042d
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:
Mind.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

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);