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:
@@ -45,7 +45,8 @@ typedef enum {
|
||||
TOKEN_LE,
|
||||
TOKEN_GT,
|
||||
TOKEN_LT,
|
||||
TOKEN_ACCESS
|
||||
TOKEN_ACCESS,
|
||||
TOKEN_IN
|
||||
} token_type_t;
|
||||
|
||||
typedef struct {
|
||||
|
||||
Reference in New Issue
Block a user