Changes with Apache 2.0.30-dev
+ *) Fix the handling of SSI directives in which the ">" of the
+ terminating "-->" is the last byte in a file [Brian Pane]
+
*) Add back in the "suEXEC mechanism enabled (wrapper: /path/to/suexec)"
message that we had back in apache-1.3 and still have scattered
throughout our docs. [Aaron Bannert]
ctx->tail_start_index = c - buf;
}
ctx->parse_pos++;
+ if (str[ctx->parse_pos] == '\0') {
+ apr_bucket *tmp_buck = dptr;
+
+ /* We want to split the bucket at the '>'. The
+ * end of the END_SEQUENCE is in the current bucket.
+ * The beginning might be in a previous bucket.
+ */
+ ctx->bytes_parsed++;
+ ctx->state = PARSED;
+ apr_bucket_split(dptr, c - buf + 1);
+ tmp_buck = APR_BUCKET_NEXT(dptr);
+ return (tmp_buck);
+ }
}
else {
if (ctx->state == PARSE_DIRECTIVE) {
ctx->tag_length++;
}
else {
- if (str[ctx->parse_pos] == '\0') {
- apr_bucket *tmp_buck = dptr;
-
- /* We want to split the bucket at the '>'. The
- * end of the END_SEQUENCE is in the current bucket.
- * The beginning might be in a previous bucket.
- */
- ctx->bytes_parsed++;
- ctx->state = PARSED;
- if ((c - buf) > 0) {
- apr_bucket_split(dptr, c - buf);
- tmp_buck = APR_BUCKET_NEXT(dptr);
- }
- return (tmp_buck);
- }
- else if (ctx->parse_pos != 0) {
+ if (ctx->parse_pos != 0) {
/* The reason for this, is that we need to make sure
* that we catch cases like --->. This makes the
* second check after the original check fails.