now work as in Apache 1.3, where no trailing '/' is
specified on the directory name. Previously, the trailing
'/' *had* to be specified, which was incompatible with
Apache 1.3.
PR: 7990
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@97590
13f79535-47bb-0310-9956-
ffa450edef68
Changes with Apache 2.0.44
+ *) mod_autoindex: AddDescription directives for directories
+ now work as in Apache 1.3, where no trailing '/' is
+ specified on the directory name. Previously, the trailing
+ '/' *had* to be specified, which was incompatible with
+ Apache 1.3. PR 7990 [Jeff Trawick]
+
*) Fix for PR 14556. The expiry calculations in mod_cache were
trying to perform "now + ((date - lastmod) * factor)" where
date == lastmod resulting in "now + 0". The code now follows
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);