| Date: Sat, 27 Jan 2018 15:51:23 +0100
PHP expects some value to run php-cgi.
The documentation of PHP is talking about »security«. I never heard of
this in the PHP context.
Diffstat:
ind.c | 2 ++
1 file changed, 2 insertions(+), 0 deletions(-)
--- |
| t@@ -440,6 +440,8 @@ setcgienviron(char *file, char *path, char *port, char *base, char *args,
setenv("REMOTE_HOST", chost, 1);
unsetenv("REMOTE_IDENT");
unsetenv("REMOTE_USER");
+ /* Make PHP happy. */
+ setenv("REDIRECT_STATUS", "", 1);
/*
* Only GET is possible in gopher. POST emulation would be really
* ugly. |