[Remove entries to the current 2.0 section below, when backported]
+ *) mod_autoindex: Restore the ability to add a description for
+ directories that don't contain an index file. [André Malo]
+
*) mod_include no longer allows an ETag header on 304 responses.
PR 19355. [Geoffrey Young <geoff@apache.org>, André Malo]
return (NULL);
}
- if (rr->finfo.filetype == APR_DIR) {
- /* ap_sub_req_lookup_dirent() adds '/' to end of any directory,
- * but that messes up our attempt to find relevant
- * AddDescription directives.
- */
- rr->filename[strlen(rr->filename) - 1] = '\0';
- }
-
p = (struct ent *) apr_pcalloc(r->pool, sizeof(struct ent));
if (dirent->filetype == APR_DIR) {
p->name = apr_pstrcat(r->pool, dirent->name, "/", NULL);
p->isdir = 1;
}
rr->filename = ap_make_dirstr_parent (rr->pool, rr->filename);
+
+ /* omit the trailing slash (1.3 compat) */
+ rr->filename[strlen(rr->filename) - 1] = '\0';
+
if (!(p->icon = find_icon(d, rr, 1))) {
p->icon = find_default_icon(d, "^^DIRECTORY^^");
}