]> granicus.if.org Git - apache/commitdiff
* modules/filters/mod_include.c (handle_printenv): Fix handling of
authorJoe Orton <jorton@apache.org>
Wed, 4 Nov 2009 22:26:23 +0000 (22:26 +0000)
committerJoe Orton <jorton@apache.org>
Wed, 4 Nov 2009 22:26:23 +0000 (22:26 +0000)
  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

modules/filters/mod_include.c

index f40741784895d6c5a1545cf49d7918c463689647..8c91d33143337c2ec078fbdc8a98dbba83e01048 100644 (file)
@@ -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 */