Restore the ability to add a description for directories that
don't contain an index file. (Broken in 2.0.48)
Submitted by: nd
Reviewed by: trawick, striker
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/APACHE_2_0_BRANCH@101980
13f79535-47bb-0310-9956-
ffa450edef68
Changes with Apache 2.0.49
+ *) Restore the ability to add a description for directories that
+ don't contain an index file. (Broken in 2.0.48) [André Malo]
+
*) Fix a problem with the display of empty variables ("SetEnv foo") in
mod_include. PR 24734 [Markus Julen <mj zermatt.net>]
APACHE 2.0 STATUS: -*-text-*-
-Last modified at [$Date: 2003/12/04 06:31:01 $]
+Last modified at [$Date: 2003/12/04 06:40:13 $]
Release:
include/ap_mmn.h: r1.60
+1: nd
- * mod_autoindex: Restore the ability to add a description for
- directories that don't contain an index file.
- PR 7990
- modules/generators/mod_autoindex.c: r1.125
- +1: nd, trawick, striker
-
* LDAP cache fixes from Matthieu Estrade; see PR 18756
include/util_ldap.h r1.12
modules/experimental/util_ldap.c r1.15, r1.16
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^^");
}