httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rob Hartill <r...@imdb.com>
Subject mod_dir.c: suggested change (fwd)
Date Wed, 20 Nov 1996 12:40:35 GMT
----- Forwarded message from Kanthan Pillay -----

Message-ID: <3292D3A2.5374@nn.independent.co.za>
Date: Wed, 20 Nov 1996 09:47:16 +0000
From: Kanthan Pillay <svpillay@nn.independent.co.za>
Organization: Natal Newspapers, Durban, South Africa
X-Mailer: Mozilla 3.01Gold (Macintosh; I; PPC)
MIME-Version: 1.0
To: apache-bugs@apache.org
Subject: mod_dir.c: suggested change
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Greetings

This is not a bug report but rather a suggestion as to how to deal more
consistently with HEADER and README files with automatically generated
directory listings.

This line:
rvputs(r, "<HEAD><TITLE>Index of ", title_name, "</TITLE></HEAD><BODY>\n
",NULL);

automagically forces a title onto every directory listing. I would
prefer that the title be defined in the HEADER file. I've patched my
source as follows:

if(!(tmp = find_header(dir_conf,r)))
        rvputs(r, "<HEAD><TITLE>Index of ", title_name,
"</TITLE></HEAD><BODY>\n",NULL);

There are probably cleaner ways of doing this.

I needed to do this to cater for the directory listing of my weekly
column which can be found at
http://www.nn.independent.co.za/~svpillay/Perspex

best,
-Kanthan Pillay

----- End of forwarded message from Kanthan Pillay -----

-- 
Rob Hartill.       Internet Movie Database Ltd.    http://www.imdb.com/  

Mime
View raw message