PR 43250, patch by Basant Kumar Kukreja
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@693141
13f79535-47bb-0310-9956-
ffa450edef68
Changes with Apache 2.3.0
[ When backported to 2.2.x, remove entry from this file ]
+ *) Don't adjust case in pathname components that are not of interest
+ to mod_mime. Fixes mod_negotiation's use of such components.
+ PR 43250 [Basant Kumar Kukreja <basant.kukreja sun.com>]
+
*) Add new LogFormat parameter, %k, which logs the number of
keepalive requests on this connection for this request..
[Dan Poirier <poirier pobox.com>]
while (*fn && (ext = ap_getword(r->pool, &fn, '.'))) {
const extension_info *exinfo = NULL;
int found;
+ char *extcase;
if (*ext == '\0') { /* ignore empty extensions "bad..html" */
continue;
found = 0;
+ /* Save the ext in extcase before converting it to lower case.
+ */
+ extcase = apr_pstrdup(r->pool, ext);
ap_str_tolower(ext);
if (conf->extension_mappings != NULL) {
found_metadata = 1;
}
else {
- *((const char **) apr_array_push(exception_list)) = ext;
+ *((const char **) apr_array_push(exception_list)) = extcase;
}
}