]> granicus.if.org Git - apache/commitdiff
allow autoindex w/o mod_dir/mod_mime setting the DIR_MAGIC_TYPE.
authorEric Covener <covener@apache.org>
Sun, 6 Sep 2015 02:04:30 +0000 (02:04 +0000)
committerEric Covener <covener@apache.org>
Sun, 6 Sep 2015 02:04:30 +0000 (02:04 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1701436 13f79535-47bb-0310-9956-ffa450edef68

CHANGES
modules/generators/mod_autoindex.c

diff --git a/CHANGES b/CHANGES
index f16198e107567189ad5a05c39a159a80af940165..674f5093124423ecb7d3feae447a77cdbb907f6b 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,6 +1,9 @@
                                                          -*- coding: utf-8 -*-
 Changes with Apache 2.5.0
 
+  *) mod_autoindex: Allow autoindexes when neither mod_dir nor mod_mime are
+     loaded. [Eric Covener]
+
   *) mod_charset_lite: On EBCDIC platforms, make sure mod_charset_lite runs
      after other resource-level filters. [Eric Covener]
 
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;
     }