httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ben Laurie <...@algroup.co.uk>
Subject Re: windows build & handler hook
Date Mon, 08 Jan 2001 22:35:21 GMT
Allan Edwards wrote:
> -static int file_cache_handler(request_rec *r)
> +static int file_cache_handler(const char *handler, request_rec *r)
>  {
>      a_file *match;
>      int errstatus;
>      int rc = OK;
> 
> +    if (strcmp(handler, "*.*")) {
> +        return DECLINED;
> +    }
> +

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).

Cheers,

Ben.

--
http://www.apache-ssl.org/ben.html

"There is no limit to what a man can do or how far he can go if he
doesn't mind who gets the credit." - Robert Woodruff

Mime
View raw message