bucket = php_stream_bucket_make_writeable(buckets_in->head TSRMLS_CC);
consumed = bucket->buflen;
- php_strip_tags(bucket->buf, bucket->buflen, &(inst->state), (char *)inst->allowed_tags, inst->allowed_tags_len);
+ bucket->buflen = php_strip_tags(bucket->buf, bucket->buflen, &(inst->state), (char *)inst->allowed_tags, inst->allowed_tags_len);
- bucket->buflen = strlen(bucket->buf);
php_stream_bucket_append(buckets_out, bucket TSRMLS_CC);
}
assert(thisfilter->abstract != NULL);
php_strip_tags_filter_dtor((php_strip_tags_filter *)thisfilter->abstract);
+
+ pefree(thisfilter->abstract, ((php_strip_tags_filter *)thisfilter->abstract)->persistent);
}
static php_stream_filter_ops strfilter_strip_tags_ops = {