From: André Malo Date: Mon, 25 Aug 2003 23:37:47 +0000 (+0000) Subject: TOKEN_RE is only valid on the right side of EQ or NE. (previously this X-Git-Tag: pre_ajp_proxy~1209 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=36b9b1b8607f8e20639a96ce5ce177b83ec0f513;p=apache TOKEN_RE is only valid on the right side of EQ or NE. (previously this 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 --- diff --git a/modules/filters/mod_include.c b/modules/filters/mod_include.c index 70f5211f7a..53e0d3f4f4 100644 --- a/modules/filters/mod_include.c +++ b/modules/filters/mod_include.c @@ -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;