From: André Malo Date: Mon, 14 Jul 2003 16:04:47 +0000 (+0000) Subject: Propagate the handler name to the action script via X-Git-Tag: pre_ajp_proxy~1431 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e1eff53b89d48fcf9631d2c0e4dd1786b1fe77a2;p=apache Propagate the handler name to the action script via the REDIRECT_HANDLER environment variable. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@100598 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/CHANGES b/CHANGES index 4197088641..5ab527e42c 100644 --- a/CHANGES +++ b/CHANGES @@ -2,6 +2,9 @@ Changes with Apache 2.1.0-dev [Remove entries to the current 2.0 section below, when backported] + *) mod_actions: Propagate the handler name to the action script via + the REDIRECT_HANDLER environment variable. [André Malo] + *) mod_ext_filter: Set additional environment variables for use by the external filter. PR 20944. [Andrew Ho, Jeff Trawick] diff --git a/modules/mappers/mod_actions.c b/modules/mappers/mod_actions.c index 0eef6c7822..55d6e65e1c 100644 --- a/modules/mappers/mod_actions.c +++ b/modules/mappers/mod_actions.c @@ -228,6 +228,10 @@ static int action_handler(request_rec *r) } script = t; + /* propagate the handler name to the script + * (will be REDIRECT_HANDLER there) + */ + apr_table_setn(r->subprocess_env, "HANDLER", action); } if (script == NULL) diff --git a/support/suexec.c b/support/suexec.c index d2ad691a18..198dd996dc 100644 --- a/support/suexec.c +++ b/support/suexec.c @@ -158,6 +158,7 @@ char *safe_env_lst[] = "REMOTE_IDENT=", "REMOTE_PORT=", "REMOTE_USER=", + "REDIRECT_HANDLER=", "REDIRECT_QUERY_STRING=", "REDIRECT_STATUS=", "REDIRECT_URL=",