* that we catch cases like <<--#. This makes the
* second check after the original check fails.
*/
- if (*c == buf[state]) {
+ if (*c == str[state]) {
state++;
}
}
--tagbuf_len;
/* Remove all whitespace */
- while (dptr) {
+ do {
ap_bucket_read(dptr, &str, &length, 0);
c = str + *offset;
+ *offset = 0;
while (c - str < length) {
if (!apr_isspace(*c)) {
break;
break;
}
dptr = AP_BUCKET_NEXT(dptr);
- }
+ } while (dptr);
/* tags can't start with - */
if (*c == '-') {
ap_rputs(error, r);
}
}
-/* AP_BRIGADE_UNSPLICE(dptr, AP_BUCKET_PREV(endsec)); */
+ *bb = ap_brigade_split(tag_and_after, endsec);
dptr = AP_BUCKET_PREV(endsec);
}
else {