Skip to content

Commit be59c77

Browse files
author
Paul J. Reder
committed
Merge this fix from 2.1-dev: *) mod_expires: Initialize ExpiresDefault to NULL instead of "" to avoid reporting an Internal Server error if it is used without having been set in the httpd.conf file. PR: 23748, 24459 Reviewed by: Andre Malo and Jeff Trawick. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/APACHE_2_0_BRANCH@101890 13f79535-47bb-0310-9956-ffa450edef68
1 parent 6f71cec commit be59c77

3 files changed

Lines changed: 8 additions & 10 deletions

File tree

CHANGES

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

3+
*) mod_expires: Initialize ExpiresDefault to NULL instead of "" to
4+
avoid reporting an Internal Server error if it is used without
5+
having been set in the httpd.conf file. PR: 23748, 24459
6+
[Andre Malo, Liam Quinn <liam htmlhelp.com>]
7+
38
*) mod_autoindex: Don't omit the <tr> start tag if the SuppressIcon
49
option is set. PR 21668. [Jesse Tie-Ten-Quee <highos highos.com>]
510

STATUS

Lines changed: 1 addition & 8 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/11/25 15:39:52 $]
2+
Last modified at [$Date: 2003/11/25 17:23:30 $]
33

44
Release:
55

@@ -74,13 +74,6 @@ PATCHES TO BACKPORT FROM 2.1
7474
[ please place file names and revisions from HEAD here, so it is easy to
7575
identify exactly what the proposed changes are! ]
7676

77-
* mod_expires: Initialize ExpiresDefault to NULL instead of "" to
78-
avoid reporting an Internal Server error if it is used without
79-
having been set in the httpd.conf file. PR: 23748, 24459
80-
http://cvs.apache.org/viewcvs.cgi/httpd-2.0/modules/metadata/mod_expires.c.diff?r1=1.46&r2=1.47
81-
http://cvs.apache.org/viewcvs.cgi/httpd-2.0/modules/metadata/mod_expires.c.diff?r1=1.47&r2=1.48
82-
+1: rederpj, nd, trawick
83-
8477
* Make Win32 MPM honor MaxMemFree for transaction pools
8578
server/mpm/winnt/child.c: r1.17
8679
server/mpm/winnt/mpm.h: r1.14

modules/metadata/mod_expires.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ static void *create_dir_expires_config(apr_pool_t *p, char *dummy)
227227
expires_dir_config *new =
228228
(expires_dir_config *) apr_pcalloc(p, sizeof(expires_dir_config));
229229
new->active = ACTIVE_DONTCARE;
230-
new->expiresdefault = "";
230+
new->expiresdefault = NULL;
231231
new->expiresbytype = apr_table_make(p, 4);
232232
return (void *) new;
233233
}
@@ -404,7 +404,7 @@ static void *merge_expires_dir_configs(apr_pool_t *p, void *basev, void *addv)
404404
new->active = add->active;
405405
}
406406

407-
if (add->expiresdefault[0] != '\0') {
407+
if (add->expiresdefault != NULL) {
408408
new->expiresdefault = add->expiresdefault;
409409
}
410410
else {

0 commit comments

Comments
 (0)