From 090e14dfda98ee0c77cfed62b741bf3eb65b45bf Mon Sep 17 00:00:00 2001 From: Ilia Alshanetsky Date: Mon, 18 Dec 2006 15:02:16 +0000 Subject: Less hackish support for spaces at the start of tags within strip_tags() --- ext/filter/sanitizing_filters.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext/filter') diff --git a/ext/filter/sanitizing_filters.c b/ext/filter/sanitizing_filters.c index 3c2d9988f8..22554bdf5d 100644 --- a/ext/filter/sanitizing_filters.c +++ b/ext/filter/sanitizing_filters.c @@ -179,7 +179,7 @@ void php_filter_string(PHP_INPUT_FILTER_PARAM_DECL) php_filter_encode_html(value, enc); /* strip tags, implicitly also removes \0 chars */ - new_len = php_strip_tags(Z_STRVAL_P(value), Z_STRLEN_P(value), NULL, NULL, -1); + new_len = php_strip_tags_ex(Z_STRVAL_P(value), Z_STRLEN_P(value), NULL, NULL, 0, 1); Z_STRLEN_P(value) = new_len; if (new_len == 0) { -- cgit v1.2.1