summaryrefslogtreecommitdiffstats
path: root/include/ap_expr.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* clarification/fixes around the replace() functionEric Covener2021-08-031-2/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1891990 13f79535-47bb-0310-9956-ffa450edef68
* Fix spelling errors found by codespell. [skip ci]Mike Rumph2020-02-131-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1873985 13f79535-47bb-0310-9956-ffa450edef68
* * ap_exr: Add replace(string, from, to) function.Jan Kaluža2014-11-271-1/+13
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1642154 13f79535-47bb-0310-9956-ffa450edef68
* fix commentStefan Fritsch2013-04-271-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1476530 13f79535-47bb-0310-9956-ffa450edef68
* * include/: Various doxy markup tweaks.Joe Orton2011-12-071-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1211364 13f79535-47bb-0310-9956-ffa450edef68
* Limit recursion in ap_expr evaluation to avoid unbounded stack usageStefan Fritsch2011-11-191-0/+2
| | | | | | | | | * evaluate chains of ||, &&, and string concatenation non-recursively * limit other types of recursion to 20 levels * avoid some string copies if concatenating more than 2 strings git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1204087 13f79535-47bb-0310-9956-ffa450edef68
* Add string valued expressions to ap_expr, do some API cleanupStefan Fritsch2011-07-021-11/+64
| | | | | | | | | | | - add possibility to have expressions that evaluate to a string and not to a boolean value - modify ap_expr_parse_cmd() interface to support this and make it more convenient to use in general - rename AP_EXPR_FLAGS_* to AP_EXPR_FLAG_* for consistency git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1142164 13f79535-47bb-0310-9956-ffa450edef68
* Add some features to ap_expr for use by mod_include:Stefan Fritsch2011-05-281-0/+17
| | | | | | | | | | | * a restricted mode that does not allow to bypass request access restrictions * new variables DOCUMENT_URI (alias for REQUEST_URI), LAST_MODIFIED * -A as an alias for -U * an additional data entry in ap_expr_eval_ctx_t for use by the consumer * an extensible ap_expr_exec_ctx() API that allows to use that data entry git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1128564 13f79535-47bb-0310-9956-ffa450edef68
* Wrap at 80William A. Rowe Jr2011-03-281-2/+4
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1086341 13f79535-47bb-0310-9956-ffa450edef68
* doxygen improvementsStefan Fritsch2010-12-111-4/+4
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1044680 13f79535-47bb-0310-9956-ffa450edef68
* Fix some doxygen warningsStefan Fritsch2010-12-081-0/+7
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1043710 13f79535-47bb-0310-9956-ffa450edef68
* Rename ap_expr's typedef names:Stefan Fritsch2010-12-041-11/+12
| | | | | | | | | | | ap_expr -> ap_expr_t ap_expr_parse_ctx -> ap_expr_parse_ctx_t ap_expr_eval_ctx -> ap_expr_eval_ctx_t ap_expr_lookup_fn -> ap_expr_lookup_fn_t ap_expr_node_op -> ap_expr_node_op_e git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1042146 13f79535-47bb-0310-9956-ffa450edef68
* - add -ipmatch, -str(c)match, -fnmatch, -R operators to ap_exprStefan Fritsch2010-11-281-4/+8
| | | | | | | | | | - allow lookup function to pre-parse string constant arguments (used for subnet masks so far) - various bug fixes for binary operators - do strdup() for error messages created on the stack to avoid corruption git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1039900 13f79535-47bb-0310-9956-ffa450edef68
* Fix another Windows build issue: Add a wrapper around ap_run_expr_lookup withStefan Fritsch2010-11-261-3/+10
| | | | | | | the correct calling convention. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1039528 13f79535-47bb-0310-9956-ffa450edef68
* More ap_expr updates:Stefan Fritsch2010-11-211-5/+22
| | | | | | | | | | | | | - minor bump for ap_expr_exec_re() introduced in r1037504 - actually commit the changes to allow using backreferences in SetEnvIfExpr - automatically add the correct entries to the Vary-header if the result of an expression evaluation depends on a request header (can be turned off by setting the AP_EXPR_FLAGS_DONT_VARY flag) - set AP_EXPR_FLAGS_DONT_VARY in mod_log_config's conditional logging - fix various off-by-one errors in req_table_func git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1037540 13f79535-47bb-0310-9956-ffa450edef68
* ap_expr related fixes/enhancements:Stefan Fritsch2010-11-211-1/+26
| | | | | | | | | | | - implement regex backreferences and make them available for setting envvars in SetEnvIfExpr - implement nested function calls in %-syntax: %{func1:%{func2:arg}} - actually implement evaluation of concatenation operator (oops...) - Fix <If ... > treating an internal error as success git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1037504 13f79535-47bb-0310-9956-ffa450edef68
* Replace ap_expr with a parser derived from mod_ssl's parser. Make mod_ssl useStefan Fritsch2010-11-061-99/+164
| | | | | | | | | | the new parser. Rework ap_expr's public interface and provide hooks for modules to add variables and functions. The Netware and Windows build files still need to be adjusted git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1032073 13f79535-47bb-0310-9956-ffa450edef68
* Add "IN" operator to expression parser, to evaluate membership ofNick Kew2010-09-291-1/+2
| | | | | | | | | | | | | a list of tokens. Couldn't resist after sf's comment on r1002363! This means expressions like <If %{REQUEST_METHOD} IN GET,HEAD,OPTIONS,...> will work as a drop-in substitute for <Limit> Also fix off-by-one bug in variable evaluation git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1002415 13f79535-47bb-0310-9956-ffa450edef68
* This is just too easy to not do it: Add an 'expr' authz provider that allowsStefan Fritsch2010-09-281-1/+1
| | | | | | | | | | arbitrary expressions in Require lines. The main issue I wanted to fix was that the env provider only allows to check for the existance of an envvar but not the contents. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1002363 13f79535-47bb-0310-9956-ffa450edef68
* Fix mod_include potential segfault checking backref from unmatched regexpNick Kew2009-07-191-0/+1
| | | | | | | | http://markmail.org/message/jlc7t5edsjujbe37 Patch by rpluem, lars, niq git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@795445 13f79535-47bb-0310-9956-ffa450edef68
* Declare the callback function NONSTDWilliam A. Rowe Jr2008-06-071-1/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@664173 13f79535-47bb-0310-9956-ffa450edef68
* Remove ap_expr_clone from the API (same day it was added:-)Nick Kew2008-04-011-14/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@643175 13f79535-47bb-0310-9956-ffa450edef68
* Flesh out ap_expr with:Nick Kew2008-03-311-6/+46
| | | | | | | | * Re-usable parse trees * Canonical string parser function (candidate) git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@642971 13f79535-47bb-0310-9956-ffa450edef68
* * Add some doxygen stub / stuffRuediger Pluem2008-03-291-0/+5
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@642631 13f79535-47bb-0310-9956-ffa450edef68
* * Prevent multiple "execution" of ap_expr.h contents when included multipleRuediger Pluem2008-03-291-0/+13
| | | | | | | times and allow it to be included by C++ files. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@642630 13f79535-47bb-0310-9956-ffa450edef68
* * For AP_MAX_REG_MATCH we need to ensure that httpd.h is there, otherwise weRuediger Pluem2008-03-291-0/+2
| | | | | | | fail to compile exports.c git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@642629 13f79535-47bb-0310-9956-ffa450edef68
* Thou shalt not let tabs creep in.Nick Kew2008-03-291-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@642596 13f79535-47bb-0310-9956-ffa450edef68
* Introduce ap_expr expression parser APINick Kew2008-03-291-0/+101
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@642558 13f79535-47bb-0310-9956-ffa450edef68