httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dean Gaudet <dgau...@arctic.org>
Subject Re: [PATCH] ReadmeName and !FancyIndexing (PR#1373)
Date Wed, 12 Nov 1997 01:52:49 GMT
+1 ... fixes an inconsistency. 

Dean

On Tue, 11 Nov 1997, Rodent of Unusual Size wrote:

>     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