You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by gr...@apache.org on 2012/10/14 14:06:10 UTC

svn commit: r1398064 - /httpd/httpd/branches/2.4.x/modules/mappers/mod_dir.c

Author: gryzor
Date: Sun Oct 14 12:06:10 2012
New Revision: 1398064

URL: http://svn.apache.org/viewvc?rev=1398064&view=rev
Log:
Adding support for the 'disabled' keyword to FallbackResource

Modified:
    httpd/httpd/branches/2.4.x/modules/mappers/mod_dir.c

Modified: httpd/httpd/branches/2.4.x/modules/mappers/mod_dir.c
URL: http://svn.apache.org/viewvc/httpd/httpd/branches/2.4.x/modules/mappers/mod_dir.c?rev=1398064&r1=1398063&r2=1398064&view=diff
==============================================================================
--- httpd/httpd/branches/2.4.x/modules/mappers/mod_dir.c (original)
+++ httpd/httpd/branches/2.4.x/modules/mappers/mod_dir.c Sun Oct 14 12:06:10 2012
@@ -162,7 +162,7 @@ static int fixup_dflt(request_rec *r)
     int error_notfound = 0;
 
     name_ptr = d->dflt;
-    if (name_ptr == NULL) {
+    if ((name_ptr == NULL) || !(strcasecmp(name_ptr,"disabled"))){
         return DECLINED;
     }
     /* XXX: if FallbackResource points to something that doesn't exist,