httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Doug MacEachern <>
Subject Re: windows build & handler hook
Date Mon, 08 Jan 2001 23:33:27 GMT
On Mon, 8 Jan 2001, Ben Laurie wrote:
> This is wrong - for starters, it was "*/*" and, secondly, if you want to
> match *s, you have to use ap_strcmp_match() (err, or something like
> that).

ap_strcmp_match is wrong too.  your comment in http_core.c is right about
causing problems:

     * The old way of doing handlers meant that this handler would
     * match literally anything - this way will require handler to
     * have a / in the middle, which probably captures the original
     * intent, but may cause problems at first - Ben 7th Jan 01
       && ap_strcmp_match(r->handler,"*/*"))
	return DECLINED;

if i have a <Location ...> with SetHandler modperl, and the handler
returns DECLINED for a file (e.g. /location/foo.css), the match will fail
(no /) and SERVER_ERROR will result.

View raw message