1
0
mirror of https://github.com/apache/httpd.git synced 2025-11-08 04:22:21 +03:00

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
This commit is contained in:
Nick Kew
2010-09-28 23:26:44 +00:00
parent a10a4e4f2f
commit 6ed93282a7
2 changed files with 32 additions and 2 deletions

View File

@@ -45,7 +45,8 @@ typedef enum {
TOKEN_LE,
TOKEN_GT,
TOKEN_LT,
TOKEN_ACCESS
TOKEN_ACCESS,
TOKEN_IN
} token_type_t;
typedef struct {