X-Git-Url: https://git.distorted.org.uk/~mdw/userv-utils/blobdiff_plain/6aaa2ce375024c33559abf60ca3c72a923b112ba..b533cc91878e52c55d3b2154728f25abb203c5ce:/www-cgi/ucgicommon.c diff --git a/www-cgi/ucgicommon.c b/www-cgi/ucgicommon.c index 7feeeb6..090cc03 100644 --- a/www-cgi/ucgicommon.c +++ b/www-cgi/ucgicommon.c @@ -1,4 +1,23 @@ -/**/ +/* + * Copyright 1996-2013 Ian Jackson + * Copyright 1998 David Damerell + * Copyright 1999,2003 + * Chancellor Masters and Scholars of the University of Cambridge + * Copyright 2010 Tony Finch + * + * This is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with userv-utils; if not, see http://www.gnu.org/licenses/. + */ #include #include @@ -7,18 +26,29 @@ #include "ucgi.h" const char *const envok[]= { + "AUTH_TYPE", "CONTENT_LENGTH", "CONTENT_TYPE", "DOCUMENT_ROOT", "GATEWAY_INTERFACE", "HTTP_ACCEPT", + "HTTP_ACCEPT_CHARSET", "HTTP_ACCEPT_ENCODING", "HTTP_ACCEPT_LANGUAGE", "HTTP_CACHE_CONTROL", + "HTTP_CONNECTION", + "HTTP_CONTENT_ENCODING", + "HTTP_COOKIE", + "HTTP_DNT", "HTTP_HOST", + "HTTP_KEEP_ALIVE", "HTTP_NEGOTIATE", "HTTP_PRAGMA", + "HTTP_REFERER", "HTTP_USER_AGENT", + "HTTP_VIA", + "HTTP_X_FORWARDED_FOR", + "HTTPS", "PATH_INFO", "PATH_TRANSLATED", "QUERY_STRING", @@ -27,14 +57,17 @@ const char *const envok[]= { "REMOTE_USER", "REMOTE_IDENT", "REQUEST_METHOD", + "REQUEST_URI", "SCRIPT_FILENAME", "SCRIPT_NAME", "SCRIPT_URI", "SCRIPT_URL", + "SERVER_ADDR", "SERVER_ADMIN", "SERVER_NAME", "SERVER_PORT", "SERVER_PROTOCOL", + "SERVER_SIGNATURE", "SERVER_SOFTWARE", 0 };