]> granicus.if.org Git - apache/commitdiff
r595672 was incomplete. We need to be sure we reject multiple-encodings.
authorNick Kew <niq@apache.org>
Fri, 16 Nov 2007 14:27:11 +0000 (14:27 +0000)
committerNick Kew <niq@apache.org>
Fri, 16 Nov 2007 14:27:11 +0000 (14:27 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@595678 13f79535-47bb-0310-9956-ffa450edef68

modules/http/http_filters.c

index 69a4b927fd4a798e96e9851ca96afae7e2bbfd41..2f1764d98fdfb8615764546529979e4357467355 100644 (file)
@@ -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 {