]> granicus.if.org Git - apache/commitdiff
we're only going to re-scan the directive when we're in
authorJeff Trawick <trawick@apache.org>
Fri, 17 Aug 2001 20:10:30 +0000 (20:10 +0000)
committerJeff Trawick <trawick@apache.org>
Fri, 17 Aug 2001 20:10:30 +0000 (20:10 +0000)
PARSE_DIRECTIVE state, so only reset directive_length when
in that state

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@90302 13f79535-47bb-0310-9956-ffa450edef68

modules/filters/mod_include.c

index 6ac346bd25d42c83d90658f24815a3346e3ae380..50ea51545f70d7bd287c5e9648647f890618751e 100644 (file)
@@ -270,8 +270,10 @@ static apr_bucket *find_end_sequence(apr_bucket *dptr, include_ctx_t *ctx, apr_b
         }
         while (c < buf + len) {
             if (ctx->bytes_parsed >= BYTE_COUNT_THRESHOLD) {
-                /* gonna start over parsing the directive next time through */
-                ctx->directive_length = 0;
+                if (ctx->state == PARSE_DIRECTIVE) {
+                    /* gonna start over parsing the directive next time through */
+                    ctx->directive_length = 0;
+                }
                 return dptr;
             }