]> granicus.if.org Git - apache/commitdiff
bug 54548 - use new expr parser with 'elif', like 'if'
authorThomas J. Donovan <tdonovan@apache.org>
Sun, 24 Feb 2013 13:58:07 +0000 (13:58 +0000)
committerThomas J. Donovan <tdonovan@apache.org>
Sun, 24 Feb 2013 13:58:07 +0000 (13:58 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1449479 13f79535-47bb-0310-9956-ffa450edef68

modules/filters/mod_include.c

index 8b9c4c774b975624533636ecd392841a1c3c54b5..af90db6728498cc274d0a904e447368f3d2355c1 100644 (file)
@@ -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);