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

2021-08-03 Thread Eric Covener
http://svn.apache.org/viewvc?rev=1891989=rev http://svn.apache.org/viewvc?rev=1891990=rev On Tue, Aug 3, 2021 at 1:14 PM Eric Covener wrote: > > On Tue, Aug 3, 2021 at 11:43 AM Eric Covener wrote: > > > > It looks like replace() was broken somewhere after it was committed, > > but I can't tell

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

2021-08-03 Thread Eric Covener
On Tue, Aug 3, 2021 at 11:43 AM Eric Covener wrote: > > It looks like replace() was broken somewhere after it was committed, > but I can't tell how. > Does it work for anyone? > > There seems to be some confusion about the arguments. > > 1. During parsing, a weird loop in ap_expr_info_make causes

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

2021-08-03 Thread Eric Covener
It looks like replace() was broken somewhere after it was committed, but I can't tell how. Does it work for anyone? There seems to be some confusion about the arguments. 1. During parsing, a weird loop in ap_expr_info_make causes the final list argument to be parsed as the strmatch pattern, but

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

2014-12-21 Thread Graham Leggett
On 27 Nov 2014, at 3:46 PM, jkal...@apache.org wrote: Author: jkaluza Date: Thu Nov 27 13:46:11 2014 New Revision: 1642154 URL: http://svn.apache.org/r1642154 Log: * ap_exr: Add replace(string, from, to) function. Modified: httpd/httpd/trunk/docs/manual/expr.xml

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

2014-12-21 Thread Eric Covener
On Sun, Dec 21, 2014 at 6:37 AM, Graham Leggett minf...@sharp.fm wrote: I am currently getting the error “sss” (not sure what that means?) when attempting to use named regex variables in LocationMatch - can you confirm this works as expected? When I saw this I was sure it was my own

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

2014-12-05 Thread Eric Covener
On Thu, Nov 27, 2014 at 8:46 AM, jkal...@apache.org wrote: * ap_exr: Add replace(string, from, to) function. Is it possible to evaluate this from 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

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

2014-12-05 Thread Jan Kaluža
On 12/05/2014 02:26 PM, Eric Covener wrote: On Thu, Nov 27, 2014 at 8:46 AM, jkal...@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)

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

2014-12-05 Thread Eric Covener
On Fri, Dec 5, 2014 at 11:01 AM, Jan Kaluža jkal...@redhat.com wrote: On 12/05/2014 02:26 PM, Eric Covener wrote: On Thu, Nov 27, 2014 at 8:46 AM, jkal...@apache.org wrote: * ap_exr: Add replace(string, from, to) function. Is it possible to evaluate this from ap_expr_str_exec()? Hm, it

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

2014-12-05 Thread Jan Kaluža
On 12/05/2014 05:09 PM, Eric Covener wrote: On Fri, Dec 5, 2014 at 11:01 AM, Jan Kaluža jkal...@redhat.com wrote: On 12/05/2014 02:26 PM, Eric Covener wrote: On Thu, Nov 27, 2014 at 8:46 AM, jkal...@apache.org wrote: * ap_exr: Add replace(string, from, to) function. Is it possible to

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

2014-12-05 Thread Yann Ylavic
On Thu, Nov 27, 2014 at 2:46 PM, jkal...@apache.org wrote: Author: jkaluza Date: Thu Nov 27 13:46:11 2014 New Revision: 1642154 URL: http://svn.apache.org/r1642154 Log: * ap_exr: Add replace(string, from, to) function. Maybe it is worth noting (doc?) that from is a ap_strmatch() pattern

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

2014-12-05 Thread Yann Ylavic
On Fri, Dec 5, 2014 at 5:51 PM, Yann Ylavic ylavic@gmail.com wrote: replace(abc*def, c*, gh) is abgh, and not abghef as one may expect. s/abghef/abghdef/ above.

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

2014-12-05 Thread Ruediger Pluem
On 12/05/2014 05:51 PM, Yann Ylavic wrote: On Thu, Nov 27, 2014 at 2:46 PM, jkal...@apache.org wrote: Author: jkaluza Date: Thu Nov 27 13:46:11 2014 New Revision: 1642154 URL: http://svn.apache.org/r1642154 Log: * ap_exr: Add replace(string, from, to) function. Maybe it is worth

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

2014-12-05 Thread Yann Ylavic
On Fri, Dec 5, 2014 at 9:05 PM, Ruediger Pluem rpl...@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!

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

2014-12-03 Thread Jan Kaluža
Thanks for reviewing that commit. I've fixed both issues in r1643094. Regards, Jan Kaluza On 12/02/2014 09:55 PM, Ruediger Pluem wrote: On 11/27/2014 02:46 PM, jkal...@apache.org wrote: Author: jkaluza Date: Thu Nov 27 13:46:11 2014 New Revision: 1642154 URL: http://svn.apache.org/r1642154

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

2014-12-02 Thread Ruediger Pluem
On 11/27/2014 02:46 PM, jkal...@apache.org wrote: Author: jkaluza Date: Thu Nov 27 13:46:11 2014 New Revision: 1642154 URL: http://svn.apache.org/r1642154 Log: * ap_exr: Add replace(string, from, to) function. Modified: httpd/httpd/trunk/docs/manual/expr.xml