From: Joe Orton Date: Wed, 4 Nov 2009 22:26:23 +0000 (+0000) Subject: * modules/filters/mod_include.c (handle_printenv): Fix handling of X-Git-Tag: 2.3.3~51 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=df8d184d40ade3319e2a4abb6abdba227ac02ca5;p=apache * modules/filters/mod_include.c (handle_printenv): Fix handling of lazy variables, courtesy of LLVM scan-build. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@832886 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/filters/mod_include.c b/modules/filters/mod_include.c index f407417848..8c91d33143 100644 --- a/modules/filters/mod_include.c +++ b/modules/filters/mod_include.c @@ -1801,7 +1801,7 @@ static apr_status_t handle_printenv(include_ctx_t *ctx, ap_filter_t *f, if (val_text == LAZY_VALUE) { val_text = add_include_vars_lazy(r, elts[i].key, ctx->time_str); } - val_text = ap_escape_html(ctx->dpool, elts[i].val); + val_text = ap_escape_html(ctx->dpool, val_text); v_len = strlen(val_text); /* assemble result */