httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From C...@PROCESS.COM (Rodent of Unusual Size)
Subject [PATCH] ReadmeName and !FancyIndexing (PR#1373)
Date Thu, 01 Jan 1970 00:00:00 GMT
    Here's a fix for PR #1373.  It makes sure that the file specified by
    ReadmeName is displayed in normal AND fancy directory listings.

    #ken    P-)}

Index: modules/standard/mod_autoindex.c
===================================================================
RCS file: /export/home/cvs/apachen/src/modules/standard/mod_autoindex.c,v
retrieving revision 1.55
diff -u -r1.55 mod_autoindex.c
--- mod_autoindex.c	1997/11/09 20:40:33	1.55
+++ mod_autoindex.c	1997/11/11 22:27:49
@@ -1100,12 +1100,13 @@
 		       direction);
     pclosedir(r->pool, d);
 
-    if (autoindex_opts & FANCY_INDEXING) {
-	if ((tmp = find_readme(autoindex_conf, r)))
-	    insert_readme(name, tmp, "", HRULE, END_MATTER, r);
-	else {
-	    rputs("</UL>", r);
-	}
+    if (!(autoindex_opts & FANCY_INDEXING)) {
+	rputs("</UL>", r);
+    }
+    if ((tmp = find_readme(autoindex_conf, r))) {
+	insert_readme(name, tmp, "",
+                      ((autoindex_opts & FANCY_INDEXING) ? HRULE : NO_HRULE),
+                      END_MATTER, r);
     }
     rputs("</BODY></HTML>\n", r);
 

Mime
View raw message