From b32fe1e4304e500bd7d8642aca06edbe689ae2ad Mon Sep 17 00:00:00 2001 From: Brian Pane Date: Fri, 29 Mar 2002 05:58:39 +0000 Subject: [PATCH] Allow variable expansion within in the "var" arg to git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94294 13f79535-47bb-0310-9956-ffa450edef68 --- modules/filters/mod_include.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/modules/filters/mod_include.c b/modules/filters/mod_include.c index d038ce1613..c36bca0c99 100644 --- a/modules/filters/mod_include.c +++ b/modules/filters/mod_include.c @@ -1358,7 +1358,10 @@ static int handle_echo(include_ctx_t *ctx, apr_bucket_brigade **bb, } } if (!strcmp(tag, "var")) { - const char *val = get_include_var(r, ctx, tag_val); + const char *val = + get_include_var(r, ctx, + ap_ssi_parse_string(r, ctx, tag_val, NULL, + MAX_STRING_LEN, 0)); if (val) { switch(encode) { case E_NONE: @@ -2784,7 +2787,8 @@ static int handle_set(include_ctx_t *ctx, apr_bucket_brigade **bb, return 1; } else if (!strcmp(tag, "var")) { - var = tag_val; + var = ap_ssi_parse_string(r, ctx, tag_val, NULL, + MAX_STRING_LEN, 0); } else if (!strcmp(tag, "value")) { if (var == (char *) NULL) { -- 2.40.0