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:26:55 UTC

svn commit: r1398066 - /httpd/httpd/trunk/modules/mappers/mod_dir.c

Author: gryzor
Date: Sun Oct 14 12:26:55 2012
New Revision: 1398066

URL: http://svn.apache.org/viewvc?rev=1398066&view=rev
Log:
FallbackResource : Support for the 'disabled' argument

Modified:
    httpd/httpd/trunk/modules/mappers/mod_dir.c

Modified: httpd/httpd/trunk/modules/mappers/mod_dir.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/mappers/mod_dir.c?rev=1398066&r1=1398065&r2=1398066&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/mappers/mod_dir.c (original)
+++ httpd/httpd/trunk/modules/mappers/mod_dir.c Sun Oct 14 12:26:55 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,