httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gry...@apache.org
Subject svn commit: r1398064 - /httpd/httpd/branches/2.4.x/modules/mappers/mod_dir.c
Date Sun, 14 Oct 2012 12:06:10 GMT
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,



Mime
View raw message