Skip to content

Commit 7ad1288

Browse files
committed
Fix a problem with the display of empty variables ("SetEnv foo") in
mod_include. PR: 24734 Submitted by: Markus Julen <mj zermatt.net> Reviewed by: trawick, nd, striker git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/APACHE_2_0_BRANCH@101979 13f79535-47bb-0310-9956-ffa450edef68
1 parent 6adaec6 commit 7ad1288

3 files changed

Lines changed: 6 additions & 7 deletions

File tree

CHANGES

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
Changes with Apache 2.0.49
22

3+
*) Fix a problem with the display of empty variables ("SetEnv foo") in
4+
mod_include. PR 24734 [Markus Julen <mj zermatt.net>]
5+
36
*) mod_log_config: Log the minutes component of the timezone correctly.
47
PR 23642. [Hong-Gunn Chew <hgbug gunnet.org>]
58

STATUS

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
APACHE 2.0 STATUS: -*-text-*-
2-
Last modified at [$Date: 2003/12/03 21:38:55 $]
2+
Last modified at [$Date: 2003/12/04 06:31:01 $]
33

44
Release:
55

@@ -355,11 +355,7 @@ PATCHES TO BACKPORT FROM 2.1
355355
bnicholes (looks good on Netware but then NetWare does not
356356
use shared memory.)
357357

358-
* Fix display of empty variables via mod_include. PR 24734.
359-
modules/metadata/mod_env.c r1.31
360-
+1: trawick, nd, striker
361-
362-
* Fix htdbm to generate comment fields in the DBM files correctly.
358+
* Fix htdbm to generate comment fields in the DBM files correctly.
363359
(This causes DBMAuthGroupFile to break)
364360
support/htdbm.c r1.11
365361
+1: jerenkrantz, striker, trawick

modules/metadata/mod_env.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ static const char *add_env_module_vars_set(cmd_parms *cmd, void *sconf_,
158158
/* name is mandatory, value is optional. no value means
159159
* set the variable to an empty string
160160
*/
161-
apr_table_setn(sconf->vars, name, value);
161+
apr_table_setn(sconf->vars, name, value ? value : "");
162162

163163
return NULL;
164164
}

0 commit comments

Comments
 (0)