]> granicus.if.org Git - apache/commitdiff
Adding support for the 'disabled' keyword to FallbackResource
authorVincent Deffontaines <gryzor@apache.org>
Sun, 14 Oct 2012 12:06:10 +0000 (12:06 +0000)
committerVincent Deffontaines <gryzor@apache.org>
Sun, 14 Oct 2012 12:06:10 +0000 (12:06 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1398064 13f79535-47bb-0310-9956-ffa450edef68

modules/mappers/mod_dir.c

index 52d0273e5dacd0d6bf96a08b1171e53db33fac2a..4364ff955152bdfcc53d7d93e7772ef6e11d27c0 100644 (file)
@@ -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,