From ec814660e3139d69fbcb61fbc853128c4fa50af8 Mon Sep 17 00:00:00 2001 From: "Thomas J. Donovan" Date: Sun, 24 Feb 2013 13:58:07 +0000 Subject: [PATCH] bug 54548 - use new expr parser with 'elif', like 'if' git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1449479 13f79535-47bb-0310-9956-ffa450edef68 --- modules/filters/mod_include.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/filters/mod_include.c b/modules/filters/mod_include.c index 8b9c4c774b..af90db6728 100644 --- a/modules/filters/mod_include.c +++ b/modules/filters/mod_include.c @@ -2411,7 +2411,10 @@ static apr_status_t handle_elif(include_ctx_t *ctx, ap_filter_t *f, return APR_SUCCESS; } - expr_ret = parse_expr(ctx, expr, &was_error); + if (ctx->intern->legacy_expr) + expr_ret = parse_expr(ctx, expr, &was_error); + else + expr_ret = parse_ap_expr(ctx, expr, &was_error); if (was_error) { SSI_CREATE_ERROR_BUCKET(ctx, f, bb); -- 2.40.0