httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yann Ylavic <ylavic....@gmail.com>
Subject Re: svn commit: r1642154 - in /httpd/httpd/trunk: docs/manual/expr.xml include/ap_expr.h server/util_expr_eval.c server/util_expr_parse.y
Date Fri, 05 Dec 2014 22:03:01 GMT
On Fri, Dec 5, 2014 at 9:05 PM, Ruediger Pluem <rpluem@apache.org> wrote:
> On 12/05/2014 05:51 PM, Yann Ylavic wrote:
>> Maybe it is worth noting (doc?) that "from" is a ap_strmatch() pattern
>> (with wildcards [*?]), hence eg.
>
> Are you sure you aren't assuming apr_fnmatch instead of apr_strmatch?

Doh! Absolutely.
I did not know apr_strmatch() actually, and read it as ap_strcmp_match()...
Nice function though, will use it more often :p

Just grep'ing "strmatch" now, I find this :

# server/util_expr_eval.c
static int op_strmatch(ap_expr_eval_ctx_t *ctx, const void *data,
                       const char *arg1, const char *arg2)
{
    return (APR_SUCCESS == apr_fnmatch(arg2, arg1, 0));
}

Quite confusing :)

Sorry for the noise,
regards,
Yann.

Mime
View raw message