httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marc Slemko <ma...@znep.com>
Subject [PATCH] PR#848: files directive in mod_info
Date Fri, 11 Jul 1997 04:17:15 GMT
Index: mod_info.c
===================================================================
RCS file: /export/home/cvs/apache/src/mod_info.c,v
retrieving revision 1.17
diff -u -r1.17 mod_info.c
--- mod_info.c	1997/06/15 19:22:30	1.17
+++ mod_info.c	1997/07/11 04:14:48
@@ -165,15 +165,19 @@
 	int lab=0, nest=0;
 
 	while(li) {
-		if(!strncasecmp(li->cmd,"<directory",10) || !strncasecmp(li->cmd,"<location",9)
||
-		  !strncasecmp(li->cmd,"<limit",6)) { 
+		if(!strncasecmp(li->cmd,"<directory",10) || 
+                   !strncasecmp(li->cmd,"<location",9) ||
+		   !strncasecmp(li->cmd,"<limit",6) ||
+                   !strncasecmp(li->cmd,"<files",6)) { 
 			if(nest) li_se=li;
 			else li_st=li; 
 			li=li->next; 
 			nest++;
 			continue; 
 		} else if(nest && (!strncasecmp(li->cmd,"</limit",7) ||
-		  !strncasecmp(li->cmd,"</location",10) || !strncasecmp(li->cmd,"</directory",11)))
{ 
+		                   !strncasecmp(li->cmd,"</location",10) || 
+		                   !strncasecmp(li->cmd,"</directory",11) ||
+		                   !strncasecmp(li->cmd,"</files",7))) { 
 			if(block_start) {
 				if((nest==1 && block_start==li_st) || (nest==2 && block_start==li_se))
{
 					rputs("<dd><tt>",r);
@@ -221,7 +225,8 @@
 					  && (strncasecmp(li->cmd,"<directory",10) &&
 					  strncasecmp(li->cmd,"<location",9) && strncasecmp(li->cmd,"<limit",6)
&&
 					  strncasecmp(li->cmd,"</limit",7) && strncasecmp(li->cmd,"</location",10)
&&
-					  strncasecmp(li->cmd,"</directory",11))) {
+					  strncasecmp(li->cmd,"</directory",11) &&
+					  strncasecmp(li->cmd,"</files",7))) {
 						rputs("<dd><tt>",r);
 						rputs(mod_info_html_cmd_string(li_st->cmd),r);
 						rputs(" ",r);



Mime
View raw message