When processing a 'SetEnv' directive, warn if the environment variable name includes a '='. It is likely a configuration error. PR 60249
Submitted by: jailletc36
Reviewed by: jailletc36, covener, ylavic
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@
1796853 13f79535-47bb-0310-9956-
ffa450edef68
*) core: EBCDIC fixes for interim responses with additional headers.
[Eric Covener]
+ *) mod_env: when processing a 'SetEnv' directive, warn if the environment
+ variable name includes a '='. It is likely a configuration error.
+ PR 60249 [Christophe Jaillet]
+
*) Evaluate nested If/ElseIf/Else configuration blocks.
[Luca Toscano, Jacob Champion]
PATCHES ACCEPTED TO BACKPORT FROM TRUNK:
[ start all new proposals below, under PATCHES PROPOSED. ]
- *) mod_env: When processing a 'SetEnv' directive, warn if the environment
- variable name includes a '='. It is likely a configuration error.
- PR 60249.
- trunk patch: http://svn.apache.org/r1795635
- 2.4.x patch: svn merge -c 1795635 ^/httpd/httpd/trunk . (modulo CHANGES)
- +1: jailletc36, covener, ylavic
-
*) mod_ssl: Consistently pass the expected bio_filter_in_ctx_t
to ssl_io_filter_error(). [Yann Ylavic]
trunk patch: http://svn.apache.org/r1796343
{
env_dir_config_rec *sconf = sconf_;
+ if (ap_strchr_c(name, '=')) {
+ char *env, *plast;
+
+ env = apr_strtok(apr_pstrdup(cmd->temp_pool, name), "=", &plast);
+
+ ap_log_error(APLOG_MARK, APLOG_WARNING, 0, cmd->server, APLOGNO(10032)
+ "Spurious usage of '=' in an environment variable name. "
+ "'%s %s %s' expected instead?", cmd->cmd->name, env, plast);
+
+ }
+
/* name is mandatory, value is optional. no value means
* set the variable to an empty string
*/