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 1ee9a83904a0077b273014297bd5ca0a1d076148
parent ee3327f3996c087888b649f06f27040a1d7283de
Author: Christoph Lohmann <20h@r-36.net>
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(-)

diff --git a/ind.c b/ind.c @@ -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.