| Fix PATH_INFO to be full relative path. Thanks bob. - geomyidae - A small C-bas… | |
| git clone git://bitreich.org/geomyidae/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfri… | |
| Log | |
| Files | |
| Refs | |
| Tags | |
| README | |
| LICENSE | |
| --- | |
| commit e418a673b849daeac362148c6dfcb3dc9355f4dc | |
| parent 00a21ba56a07fa0eaefd27c626c4605fce3e042d | |
| Author: Christoph Lohmann <[email protected]> | |
| 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(-) | |
| --- | |
| diff --git a/ind.c b/ind.c | |
| @@ -547,7 +547,7 @@ setcgienviron(char *file, char *path, char *port, char *bas… | |
| 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); |