Introduction
Introduction Statistics Contact Development Disclaimer Help
Fix PATH_INFO to be full relative path. Thanks bob. - geomyidae - a small C-bas…
git clone git://git.codemadness.org/geomyidae
Log
Files
Refs
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);
You are viewing proxied material from codemadness.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.