/* list of environment variables which are kept in the given * environment. Some may or may not be hand crafted and passed into * the execv'd environment. * * TBD: The logic of this should be inverted. IOW, we should audit the * Mailman CGI code for those environment variables that are used, and * specifically white list them, removing all other variables. * MAS: This is now done. * * John Viega * also suggests imposing a maximum size just in case Python doesn't handle * them right (which it should because Python strings have no hard limits). */ static char* keepenvars[] = { "CONTENT_TYPE=", "HOST=", "HTTP_COOKIE=", "HTTP_FORWARDED_FOR=", "HTTP_HOST=", "HTTP_X_FORWARDED_FOR=", "LOGNAME=", "PATH_INFO=", "QUERY_STRING=", "REMOTE_ADDR=", "REQUEST_METHOD=", "REQUEST_URI=", "SCRIPT_NAME=", "SERVER_NAME=", "SERVER_PORT=", "USER=", "CONTENT_LENGTH=", "DOCUMENT_ROOT=", "SERVER_PROTOCOL=", "REQUEST_SCHEME=", "HTTPS=", "REMOTE_PORT=", NULL };