Sorry all,

The patch I sent you it utter garbage, please disregard.

Regards,

James Williamson
----- Original Message -----
From: James Williamson <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, September 27, 2001 9:02 AM
Subject: mod_webapp - regex matching


> Hi all,
>
> I'm not sure why regex matching wasn't included with the mod_webapp
> connector, and reading the user lists there clearly is a demand for it. I
> hope I'm not overstepping the mark but I've put a diff listing below which
> enables regex matching. As you'll see it's only for apache 1, but that's
> what I'm currently working with and in the true sense of the open source
> 'thing' I'm just scratching my personal itch.
>
> Regards,
>
> James Williamson
>
> Index: apache-1.3/mod_webapp.c
> ===================================================================
> RCS file:
> /home/cvspublic/jakarta-tomcat-connectors/webapp/apache-1.3/mod_webapp.c,v
> retrieving revision 1.23
> diff -r1.23 mod_webapp.c
> 401a402
> >         if (apr_fnmatch(appl->rpth,r->uri,FNM_PERIOD) == 0) break;
> Index: include/wa.h
> ===================================================================
> RCS file: /home/cvspublic/jakarta-tomcat-connectors/webapp/include/wa.h,v
> retrieving revision 1.11
> diff -r1.11 wa.h
> 84a85
> > #include <apr_fnmatch.h>
> Index: lib/wa_config.c
> ===================================================================
> RCS file:
/home/cvspublic/jakarta-tomcat-connectors/webapp/lib/wa_config.c,v
> retrieving revision 1.6
> diff -r1.6 wa_config.c
> 85c85,89
> <       appl->rpth=apr_pstrcat(wa_pool,buf,"/",NULL);
> ---
> >       if (!ap_is_fnmatch(buf)) {
> >         appl->rpth=apr_pstrcat(wa_pool,buf,"/",NULL);
> >       } else {
> >         appl->rpth=apr_pstrdup(wa_pool,buf);
> >       }
>
>

Reply via email to