is in a separate bucket...the code in send_parsed_content() doesn't
expect a case where ctx->state==PARSE_DIRECTIVE but ctx->tag_start_buffer
is NULL. So in found_start_sequence(), we set ctx->tag_start_buffer
to point to the next bucket if the end of the <!--# is at the very
end of the current bucket.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94454
13f79535-47bb-0310-9956-
ffa450edef68
ctx->tag_length = 0;
ctx->parse_pos = 0;
- /* Don't set tag_start_bucket if tagStart indexes the end of the bucket. */
+ /* If tagStart indexes the end of the bucket, then tag_start_bucket
+ * should be the next bucket
+ */
if (tagStart < len) {
ctx->tag_start_bucket = dptr;
ctx->tag_start_index = tagStart;
}
+ else {
+ ctx->tag_start_bucket = APR_BUCKET_NEXT(dptr);
+ ctx->tag_start_index = 0;
+ }
if (ctx->head_start_index > 0) {
apr_bucket *tmp_bkt;