summaryrefslogtreecommitdiff
path: root/support/suexec.c
diff options
context:
space:
mode:
authorStefan Fritsch <sf@apache.org>2011-07-13 19:11:21 +0000
committerStefan Fritsch <sf@apache.org>2011-07-13 19:11:21 +0000
commit1039437f77622968e2e0498672828a6d36d2093c (patch)
treed3f4c36b21a29d3bb5701856b690b5f484f46976 /support/suexec.c
parent32d9e326efc69b545cb2e8c5d021870bdd20b6df (diff)
downloadhttpd-1039437f77622968e2e0498672828a6d36d2093c.tar.gz
Add some environment variables to the whitelist in suexec
PR: 51499 Submitted by: Graham Laverty <graham reg ca>, Stefan Fritsch git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1146244 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'support/suexec.c')
-rw-r--r--support/suexec.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/support/suexec.c b/support/suexec.c
index ae17a77fcc..5d78bcdb85 100644
--- a/support/suexec.c
+++ b/support/suexec.c
@@ -81,6 +81,8 @@ static const char *const safe_env_lst[] =
"AUTH_TYPE=",
"CONTENT_LENGTH=",
"CONTENT_TYPE=",
+ "CONTEXT_DOCUMENT_ROOT=",
+ "CONTEXT_PREFIX=",
"DATE_GMT=",
"DATE_LOCAL=",
"DOCUMENT_NAME=",
@@ -99,13 +101,16 @@ static const char *const safe_env_lst[] =
"REMOTE_IDENT=",
"REMOTE_PORT=",
"REMOTE_USER=",
+ "REDIRECT_ERROR_NOTES=",
"REDIRECT_HANDLER=",
"REDIRECT_QUERY_STRING=",
"REDIRECT_REMOTE_USER=",
+ "REDIRECT_SCRIPT_FILENAME=",
"REDIRECT_STATUS=",
"REDIRECT_URL=",
"REQUEST_METHOD=",
"REQUEST_URI=",
+ "REQUEST_SCHEME=",
"SCRIPT_FILENAME=",
"SCRIPT_NAME=",
"SCRIPT_URI=",