www-apache-bugdb mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dgau...@apache.org
Subject Re: mod_autoindex/4256: Patch to permit HeaderName and Readme files to be server parsed.
Date Tue, 20 Apr 1999 17:41:41 GMT
[In order for any reply to be added to the PR database, ]
[you need to include <apbugs@Apache.Org> in the Cc line ]
[and leave the subject line UNCHANGED.  This is not done]
[automatically because of the potential for mail loops. ]
[If you do not include this Cc, your reply may be ig-   ]
[nored unless you are responding to an explicit request ]
[from a developer.                                      ]
[Reply only with text; DO NOT SEND ATTACHMENTS!         ]

Synopsis: Patch to permit HeaderName and Readme files to be server parsed.

State-Changed-From-To: open-feedback
State-Changed-By: dgaudet
State-Changed-When: Tue Apr 20 10:41:39 PDT 1999
If you change it to use ap_sub_req_lookup_uri() it should
go through all the negotiation stuff -- so if multiviews
is enabled it will find the foo.html... and you don't have
to append .html.  This would be a much cleaner solution.

You should just be able to ap_run_subrequest... the default
handler should take care of including plain text files...
a good example of this is handle_include() in mod_include.

Also, ap_cpystrn is generally evil.  Look at ap_pstrcat()
which you could have used to catenate the two strings without
fixed length limits.


View raw message