httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan Kalu┼ża <jkal...@redhat.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 16:01:58 GMT
On 12/05/2014 02:26 PM, Eric Covener wrote:
> On Thu, Nov 27, 2014 at 8:46 AM,  <jkaluza@apache.org> wrote:
>> * ap_exr: Add replace(string, from, to) function.
>
> Is it possible to evaluate this from ap_expr_str_exec()?

Hm, it worked for me like this:

Require expr replace(%{REQUEST_METHOD},  "E", "O") == "GOT"

This internally uses ap_expr_str_exec().

> I am stuck on trying to get it to work. I think we cannot get to multi-valued
> functions from  the %{func:arg} syntax used when starting at string.

I think I'm lost here. Checking for ap_expr documentation, I don't see 
this syntax. Can you describe this more. I'm sorry, but was checking 
ap_expr for first time while doing this patch, so there might be things 
I overlooked.

Regards,
Jan Kaluza


Mime
View raw message