From: Nick Kew Date: Fri, 16 Nov 2007 14:27:11 +0000 (+0000) Subject: r595672 was incomplete. We need to be sure we reject multiple-encodings. X-Git-Tag: 2.3.0~1251 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=16519a4d5a1f8a14fd1c704bf8d69dca38d23963;p=apache r595672 was incomplete. We need to be sure we reject multiple-encodings. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@595678 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/http/http_filters.c b/modules/http/http_filters.c index 69a4b927fd..2f1764d98f 100644 --- a/modules/http/http_filters.c +++ b/modules/http/http_filters.c @@ -116,7 +116,7 @@ apr_status_t ap_http_filter(ap_filter_t *f, apr_bucket_brigade *b, if (tenc) { /* RFC2616 allows qualifiers, so use strncasecmp */ - if (!strncasecmp(tenc, "chunked", 7)) { + if (!strncasecmp(tenc, "chunked", 7) && !ap_strchr_c(tenc, ',')) { ctx->state = BODY_CHUNK; } else {