]> granicus.if.org Git - apache/commitdiff
Merge r1701436 from trunk:
authorJim Jagielski <jim@apache.org>
Wed, 16 Sep 2015 13:33:12 +0000 (13:33 +0000)
committerJim Jagielski <jim@apache.org>
Wed, 16 Sep 2015 13:33:12 +0000 (13:33 +0000)
allow autoindex w/o mod_dir/mod_mime setting the DIR_MAGIC_TYPE.

Submitted by: covener
Reviewed/backported by: jim

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1703404 13f79535-47bb-0310-9956-ffa450edef68

CHANGES
STATUS
modules/generators/mod_autoindex.c

diff --git a/CHANGES b/CHANGES
index b669af72b47d83f09756acfe50caf6c14ef5a3c8..89fade278ed3adba88285c3941bbc18907272628 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -2,6 +2,9 @@
 
 Changes with Apache 2.4.17
 
+  *) mod_autoindex: Allow autoindexes when neither mod_dir nor mod_mime are
+     loaded. [Eric Covener]
+
   *) mod_rewrite:  Allow cookies set by mod_rewrite to contain ':' by accepting
      ';' as an alternate separator.  PR47241. 
      [<bugzilla schermesser com>, Eric Covener]
diff --git a/STATUS b/STATUS
index 587e399bbb5c16b1c7f0b1c55227561b6e9f3b81..5a0224377c24ec33c9aaf5ace984868976587562 100644 (file)
--- a/STATUS
+++ b/STATUS
@@ -109,11 +109,6 @@ RELEASE SHOWSTOPPERS:
 PATCHES ACCEPTED TO BACKPORT FROM TRUNK:
   [ start all new proposals below, under PATCHES PROPOSED. ]
 
-  *) mod_autoindex: Allow autoindexes to work without mod_dir or mod_mime
-     trunk: http://svn.apache.org/r1701436
-     2.4.x: trunk works
-     +1: covener, ylavic, jim
-
   *) Easy patches - synch with trunk
         - core: Core filters do not need mod_proxy.h
         - core: Small speed optimization when parsing <Limit>, <LimitExcept>
index 043a7af7367fb571c9ae512ac441c320ded33375..8f8cc8e2e66b8a8a77df8971ca76ab170fdfca05 100644 (file)
@@ -2274,7 +2274,10 @@ static int handle_autoindex(request_rec *r)
     autoindex_config_rec *d;
     int allow_opts;
 
-    if(strcmp(r->handler,DIR_MAGIC_TYPE)) {
+    if (strcmp(r->handler,DIR_MAGIC_TYPE) && !AP_IS_DEFAULT_HANDLER_NAME(r->handler)) {
+        return DECLINED;
+    }
+    if (r->finfo.filetype != APR_DIR) {
         return DECLINED;
     }