From: Jeff Trawick Date: Fri, 17 Aug 2001 20:10:30 +0000 (+0000) Subject: we're only going to re-scan the directive when we're in X-Git-Tag: 2.0.24~7 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4e0b673f504c63447e3d3a9fae259169069c88bf;p=apache we're only going to re-scan the directive when we're in 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 --- diff --git a/modules/filters/mod_include.c b/modules/filters/mod_include.c index 6ac346bd25..50ea51545f 100644 --- a/modules/filters/mod_include.c +++ b/modules/filters/mod_include.c @@ -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; }