[Remove entries to the current 2.0 section below, when backported]
- *) mod_expires: Don't report an Internal Server error if ExpiresDefault
- is used and has not been set in the httpd.conf file. PR: 23748, 24459
- [Liam Quinn <liam htmlhelp.com>]
+ *) 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
+ [Andre Malo, Liam Quinn <liam htmlhelp.com>]
*) mod_logio: Account for some bytes handed to the network layer prior to
dropped connections. [Jeff Trawick]
(expires_dir_config *) apr_pcalloc(p, sizeof(expires_dir_config));
new->active = ACTIVE_DONTCARE;
new->wildcards = 0;
- new->expiresdefault = "";
+ new->expiresdefault = NULL;
new->expiresbytype = apr_table_make(p, 4);
return (void *) new;
}
new->active = add->active;
}
- if (add->expiresdefault[0] != '\0') {
+ if (add->expiresdefault != NULL) {
new->expiresdefault = add->expiresdefault;
}
else {
expiry = conf->expiresdefault;
}
}
- /* != '\0' covers the case where ExpiresDefault is not user defined. */
- if (expiry != NULL && expiry[0] != '\0') {
+ if (expiry != NULL) {
set_expiration_fields(r, expiry, t);
}
}