iAdd a commit about how to handle environment variables. - geomyidae - A small C-based gopherd. Err bitreich.org 70 hgit clone git://bitreich.org/geomyidae/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/geomyidae/ URL:git://bitreich.org/geomyidae/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/geomyidae/ bitreich.org 70 1Log /scm/geomyidae/log.gph bitreich.org 70 1Files /scm/geomyidae/files.gph bitreich.org 70 1Refs /scm/geomyidae/refs.gph bitreich.org 70 1Tags /scm/geomyidae/tag bitreich.org 70 1README /scm/geomyidae/file/README.gph bitreich.org 70 1LICENSE /scm/geomyidae/file/LICENSE.gph bitreich.org 70 i--- Err bitreich.org 70 1commit fc6e766a8c45e7a83a0f3b40345b7dccf4e49b11 /scm/geomyidae/commit/fc6e766a8c45e7a83a0f3b40345b7dccf4e49b11.gph bitreich.org 70 1parent d8ae4004e9ef36ea38296205f3723527d45a17a5 /scm/geomyidae/commit/d8ae4004e9ef36ea38296205f3723527d45a17a5.gph bitreich.org 70 hAuthor: Christoph Lohmann <20h@r-36.net> URL:mailto:20h@r-36.net bitreich.org 70 iDate: Mon, 13 Aug 2018 15:09:10 +0200 Err bitreich.org 70 i Err bitreich.org 70 iAdd a commit about how to handle environment variables. Err bitreich.org 70 i Err bitreich.org 70 iDiffstat: Err bitreich.org 70 i M ind.c | 5 ++++- Err bitreich.org 70 i Err bitreich.org 70 i1 file changed, 4 insertions(+), 1 deletion(-) Err bitreich.org 70 i--- Err bitreich.org 70 1diff --git a/ind.c b/ind.c /scm/geomyidae/file/ind.c.gph bitreich.org 70 i@@ -471,7 +471,10 @@ void Err bitreich.org 70 i setcgienviron(char *file, char *path, char *port, char *base, char *args, Err bitreich.org 70 i char *sear, char *ohost, char *chost) Err bitreich.org 70 i { Err bitreich.org 70 i- Err bitreich.org 70 i+ /* Err bitreich.org 70 i+ * TODO: Clean environment from possible unsafe environment variables. Err bitreich.org 70 i+ * But then it is the responsibility of the script writer. Err bitreich.org 70 i+ */ Err bitreich.org 70 i unsetenv("AUTH_TYPE"); Err bitreich.org 70 i unsetenv("CONTENT_LENGTH"); Err bitreich.org 70 i unsetenv("CONTENT_TYPE"); Err bitreich.org 70 .