]> granicus.if.org Git - php/commitdiff
Fixed unicode support for strip_tags()
authorDmitry Stogov <dmitry@php.net>
Wed, 12 Oct 2005 11:00:47 +0000 (11:00 +0000)
committerDmitry Stogov <dmitry@php.net>
Wed, 12 Oct 2005 11:00:47 +0000 (11:00 +0000)
ext/standard/string.c

index 49b7a7f59f5122842e16a3b1e881eeddba203f0c..f47d86944a80548fe59adc22db55c6ce61ff30c5 100644 (file)
@@ -5123,6 +5123,7 @@ PHPAPI int32_t php_u_strip_tags(UChar *rbuf, int32_t len, int *stateptr, UChar *
        buf = eustrndup(rbuf, len);
        rp = rbuf;
        if (allow_len != 0) {
+               allow = eustrndup(allow, allow_len);
                php_u_strtolower(&allow, &allow_len, UG(default_locale));
                tbuf = eumalloc(PHP_TAG_BUF_SIZE+1);
                tp = tbuf;