moriyoshi Mon Feb 24 17:41:55 2003 EDT Modified files: /php4/ext/standard filters.c Log: Fixed string.strip_tags filter so it reflects the change on php_strip_tags Index: php4/ext/standard/filters.c diff -u php4/ext/standard/filters.c:1.27 php4/ext/standard/filters.c:1.28 --- php4/ext/standard/filters.c:1.27 Tue Feb 18 19:12:23 2003 +++ php4/ext/standard/filters.c Mon Feb 24 17:41:55 2003 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: filters.c,v 1.27 2003/02/19 00:12:23 moriyoshi Exp $ */ +/* $Id: filters.c,v 1.28 2003/02/24 22:41:55 moriyoshi Exp $ */ #include "php.h" #include "php_globals.h" @@ -214,9 +214,8 @@ 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 @@ 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 = {
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php