]> granicus.if.org Git - apache/commitdiff
TOKEN_RE is only valid on the right side of EQ or NE. (previously this
authorAndré Malo <nd@apache.org>
Mon, 25 Aug 2003 23:37:47 +0000 (23:37 +0000)
committerAndré Malo <nd@apache.org>
Mon, 25 Aug 2003 23:37:47 +0000 (23:37 +0000)
error was caught during the evaluation stage)

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@101104 13f79535-47bb-0310-9956-ffa450edef68

modules/filters/mod_include.c

index 70f5211f7a41baaa87ddb770822c978490e11955..53e0d3f4f4a1255339286563318f9216eda35a30 100644 (file)
@@ -1147,7 +1147,6 @@ static int parse_expr(include_ctx_t *ctx, const char *expr, int *was_error)
         if (!current) {
             switch (new->token.type) {
             case TOKEN_STRING:
-            case TOKEN_RE:
             case TOKEN_NOT:
             case TOKEN_LBRACE:
                 root = current = new;
@@ -1192,10 +1191,6 @@ static int parse_expr(include_ctx_t *ctx, const char *expr, int *was_error)
             switch (current->token.type) {
             case TOKEN_EQ:
             case TOKEN_NE:
-            case TOKEN_AND:
-            case TOKEN_OR:
-            case TOKEN_LBRACE:
-            case TOKEN_NOT:
                 new->parent = current;
                 current = current->right = new;
                 ++regex;