PHP expects some value to run php-cgi. - geomyidae - A small C-based gopherd. HTML git clone git://bitreich.org/geomyidae/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/geomyidae/ DIR Log DIR Files DIR Refs DIR Tags DIR README DIR LICENSE --- DIR commit 1ee9a83904a0077b273014297bd5ca0a1d076148 DIR parent ee3327f3996c087888b649f06f27040a1d7283de HTML 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: M ind.c | 2 ++ 1 file changed, 2 insertions(+), 0 deletions(-) --- DIR 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.