| PHP expects some value to run php-cgi. - geomyidae - A small C-based gopherd. | |
| git clone git://bitreich.org/geomyidae/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfri… | |
| Log | |
| Files | |
| Refs | |
| Tags | |
| README | |
| LICENSE | |
| --- | |
| commit 1ee9a83904a0077b273014297bd5ca0a1d076148 | |
| parent ee3327f3996c087888b649f06f27040a1d7283de | |
| Author: Christoph Lohmann <[email protected]> | |
| 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(-) | |
| --- | |
| diff --git a/ind.c b/ind.c | |
| @@ -440,6 +440,8 @@ setcgienviron(char *file, char *path, char *port, char *bas… | |
| 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. |