summaryrefslogtreecommitdiff
path: root/ext/filter
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2006-12-18 15:02:16 +0000
committerIlia Alshanetsky <iliaa@php.net>2006-12-18 15:02:16 +0000
commit090e14dfda98ee0c77cfed62b741bf3eb65b45bf (patch)
treeb2eea077dd8e6a0c9c35dd8b7520686ebc8bb6aa /ext/filter
parenta938d8e3862fc0bcf38a73cedb0b8b3716b01936 (diff)
downloadphp-git-090e14dfda98ee0c77cfed62b741bf3eb65b45bf.tar.gz
Less hackish support for spaces at the start of tags within strip_tags()
Diffstat (limited to 'ext/filter')
-rw-r--r--ext/filter/sanitizing_filters.c2
1 files changed, 1 insertions, 1 deletions
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) {