From: André Malo Date: Thu, 28 Aug 2003 23:59:58 +0000 (+0000) Subject: allow the undefined echo string to be configured via X-Git-Tag: pre_ajp_proxy~1192 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1586769bbd24d0d51b682626c1f705f164088856;p=apache allow the undefined echo string to be configured via git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@101130 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/filters/mod_include.c b/modules/filters/mod_include.c index 84986c1a68..4be60e2524 100644 --- a/modules/filters/mod_include.c +++ b/modules/filters/mod_include.c @@ -1906,7 +1906,8 @@ static apr_status_t handle_echo(include_ctx_t *ctx, ap_filter_t *f, } /* - * + * */ static apr_status_t handle_config(include_ctx_t *ctx, ap_filter_t *f, apr_bucket_brigade *bb) @@ -1934,7 +1935,6 @@ static apr_status_t handle_config(include_ctx_t *ctx, ap_filter_t *f, while (1) { char *tag = NULL; char *tag_val = NULL; - char *parsed_string; ap_ssi_get_tag_and_value(ctx, &tag, &tag_val, SSI_VALUE_RAW); if (!tag || !tag_val) { @@ -1945,6 +1945,11 @@ static apr_status_t handle_config(include_ctx_t *ctx, ap_filter_t *f, ctx->error_str = ap_ssi_parse_string(ctx, tag_val, NULL, 0, SSI_EXPAND_DROP_NAME); } + else if (!strcmp(tag, "echomsg")) { + ctx->intern->undefined_echo = + ap_ssi_parse_string(ctx, tag_val, NULL, 0,SSI_EXPAND_DROP_NAME); + ctx->intern->undefined_echo_len=strlen(ctx->intern->undefined_echo); + } else if (!strcmp(tag, "timefmt")) { apr_time_t date = r->request_time; @@ -1960,6 +1965,8 @@ static apr_status_t handle_config(include_ctx_t *ctx, ap_filter_t *f, ctx->time_str, 0)); } else if (!strcmp(tag, "sizefmt")) { + char *parsed_string; + parsed_string = ap_ssi_parse_string(ctx, tag_val, NULL, 0, SSI_EXPAND_DROP_NAME); if (!strcmp(parsed_string, "bytes")) {