1
0
mirror of https://github.com/apache/httpd.git synced 2025-11-05 05:30:39 +03:00
Commit Graph

16 Commits

Author SHA1 Message Date
Stefan Fritsch
ac9bf53004 Fix compiler warning in maintainer-mode
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1024011 13f79535-47bb-0310-9956-ffa450edef68
2010-10-18 21:28:59 +00:00
Nick Kew
6ed93282a7 Add "IN" operator to expression parser, to evaluate membership of
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
2010-09-28 23:26:44 +00:00
Stefan Fritsch
a10a4e4f2f This is just too easy to not do it: Add an 'expr' authz provider that allows
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
2010-09-28 21:33:44 +00:00
Stefan Fritsch
ebb62867fb Use the new APLOG_USE_MODULE/AP_DECLARE_MODULE macros everywhere to take
advantage of per-module loglevels


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@951895 13f79535-47bb-0310-9956-ffa450edef68
2010-06-06 16:59:50 +00:00
Stefan Fritsch
8d143e15c8 fix more errors found by cppcheck
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@930962 13f79535-47bb-0310-9956-ffa450edef68
2010-04-05 21:17:08 +00:00
Jeff Trawick
f152c42726 respect const-ness of string argument to ap_expr_string()
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@815304 13f79535-47bb-0310-9956-ffa450edef68
2009-09-15 12:59:12 +00:00
Nick Kew
51f626e107 Support mod_rewrite's %{varname} variables in ap_expr default expression parser
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@809768 13f79535-47bb-0310-9956-ffa450edef68
2009-08-31 22:36:42 +00:00
Nick Kew
9cd5afd692 Fix mod_include potential segfault checking backref from unmatched regexp
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
2009-07-18 23:12:58 +00:00
Jim Jagielski
50d2bb90ca de-tabify
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@667274 13f79535-47bb-0310-9956-ffa450edef68
2008-06-12 22:25:52 +00:00
William A. Rowe Jr
eb8b3d7b15 Registered callbacks are NONSTD or must be specially
declared in the function prototype of the c/b arg.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@664172 13f79535-47bb-0310-9956-ffa450edef68
2008-06-06 22:39:44 +00:00
Nick Kew
edaecc9146 Avoid returning NULL from ap_expr_string.
Empty string works and won't cause segfault.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@644122 13f79535-47bb-0310-9956-ffa450edef68
2008-04-03 00:34:20 +00:00
Nick Kew
2f231b6f0a Expression evaluation: treat null expression as unconditional, not segfault.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@644105 13f79535-47bb-0310-9956-ffa450edef68
2008-04-02 23:08:22 +00:00
Nick Kew
500c9cb211 Remove ap_expr_clone from the API (same day it was added:-)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@643175 13f79535-47bb-0310-9956-ffa450edef68
2008-03-31 22:10:36 +00:00
Nick Kew
41df671a88 Flesh out ap_expr with:
* 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
2008-03-31 12:16:58 +00:00
Nick Kew
6df04a66fa Thou shalt not let tabs creep in.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@642596 13f79535-47bb-0310-9956-ffa450edef68
2008-03-29 19:56:55 +00:00
Nick Kew
8f6e6a9726 Introduce ap_expr expression parser API
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@642558 13f79535-47bb-0310-9956-ffa450edef68
2008-03-29 17:13:28 +00:00