diff options
author | Moriyoshi Koizumi <moriyoshi@php.net> | 2003-02-24 22:41:55 +0000 |
---|---|---|
committer | Moriyoshi Koizumi <moriyoshi@php.net> | 2003-02-24 22:41:55 +0000 |
commit | 14db9ea88d6916e57368744dc8b50abca6f9236c (patch) | |
tree | 6eaaed7545997a68ea5fc6519d0c748368220cb1 | |
parent | b44b0b80e013f94186fd1b6de2d8f99390d962fc (diff) | |
download | php-git-14db9ea88d6916e57368744dc8b50abca6f9236c.tar.gz |
Fixed string.strip_tags filter so it reflects the change on php_strip_tags
-rw-r--r-- | ext/standard/filters.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ext/standard/filters.c b/ext/standard/filters.c index 565831139c..918377a5e7 100644 --- a/ext/standard/filters.c +++ b/ext/standard/filters.c @@ -214,9 +214,8 @@ static php_stream_filter_status_t strfilter_strip_tags_filter( 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); } @@ -232,6 +231,8 @@ static void strfilter_strip_tags_dtor(php_stream_filter *thisfilter TSRMLS_DC) 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 = { |