this fixes the case where we have a SSI start tag split up
over multiple buckets.
BTW
HTTPD-test is failing.
but it was failing on 2.0.32 version of mod-include as well
PR:
Obtained from:
Submitted by: Brian Pane
Reviewed by: Ian Holsman
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93555
13f79535-47bb-0310-9956-
ffa450edef68
if (ctx->state == PARSE_HEAD)
{
apr_size_t tmpLen;
- tmpLen = (len > (slen - 1)) ? len : (slen - 1);
+ tmpLen = (len < (slen - 1)) ? len : (slen - 1);
while (c < buf + tmpLen && *c == str[ctx->parse_pos])
{
ctx->bytes_parsed += c - buf;
return found_start_sequence(dptr, ctx, c - buf);
}
+ else if (c == buf + tmpLen) {
+ dptr = APR_BUCKET_NEXT(dptr);
+ continue;
+ }
/* False alarm...
*/