From: William A. Rowe Jr Date: Thu, 30 Aug 2001 14:54:50 +0000 (+0000) Subject: Same as Jeff Trawick's patch [thank you!] only a tad faster, and error X-Git-Tag: 2.0.26~379 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a4b4e1a534b47776e0ebc6be15d01af9e0d51fcf;p=apache Same as Jeff Trawick's patch [thank you!] only a tad faster, and error out on the old Set{Input|Output}Filter onefilter twofilter syntax (prior to this patch, only the last filter in a space seperated list would be configured.) git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@90813 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/server/core.c b/server/core.c index 044a11d8c0..d8b95f63b5 100644 --- a/server/core.c +++ b/server/core.c @@ -2818,10 +2818,10 @@ AP_INIT_TAKE1("ForceType", ap_set_string_slot_lower, AP_INIT_TAKE1("SetHandler", ap_set_string_slot_lower, (void *)APR_XtOffsetOf(core_dir_config, handler), OR_FILEINFO, "a handler name that overrides any other configured handler"), -AP_INIT_ITERATE("SetOutputFilter", ap_set_string_slot, +AP_INIT_TAKE1("SetOutputFilter", ap_set_string_slot, (void *)APR_XtOffsetOf(core_dir_config, output_filters), OR_FILEINFO, "filter (or ; delimited list of filters) to be run on the request content"), -AP_INIT_ITERATE("SetInputFilter", ap_set_string_slot, +AP_INIT_TAKE1("SetInputFilter", ap_set_string_slot, (void *)APR_XtOffsetOf(core_dir_config, input_filters), OR_FILEINFO, "filter (or ; delimited list of filters) to be run on the request body"), @@ -3359,14 +3359,14 @@ static void core_insert_filter(request_rec *r) const char *filter, *filters = conf->output_filters; if (filters) { - while ((filter = ap_getword(r->pool, &filters, ';')) && filter[0]) { + while (*filters && (filter = ap_getword(r->pool, &filters, ';'))) { ap_add_output_filter(filter, NULL, r, r->connection); } } filters = conf->input_filters; if (filters) { - while ((filter = ap_getword(r->pool, &filters, ';')) && filter[0]) { + while (*filters && (filter = ap_getword(r->pool, &filters, ';'))) { ap_add_input_filter(filter, NULL, r, r->connection); } }