diff options
author | William A. Rowe Jr <wrowe@apache.org> | 2001-08-30 16:54:50 +0200 |
---|---|---|
committer | William A. Rowe Jr <wrowe@apache.org> | 2001-08-30 16:54:50 +0200 |
commit | a4b4e1a534b47776e0ebc6be15d01af9e0d51fcf (patch) | |
tree | d401dbe7d51db9fc8e3731b5001a5c75e3835bd7 | |
parent | After committing Brian Havard's fix to Unix file_io yesterday, (diff) | |
download | apache2-a4b4e1a534b47776e0ebc6be15d01af9e0d51fcf.tar.xz apache2-a4b4e1a534b47776e0ebc6be15d01af9e0d51fcf.zip |
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
-rw-r--r-- | server/core.c | 8 |
1 files changed, 4 insertions, 4 deletions
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); } } |