httpd-cvs mailing list archives

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



Mime
View raw message