From 1586769bbd24d0d51b682626c1f705f164088856 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Andr=C3=A9=20Malo?= Date: Thu, 28 Aug 2003 23:59:58 +0000 Subject: [PATCH] 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 --- modules/filters/mod_include.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) 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")) { -- 2.50.1