From: Dmitry Stogov Date: Wed, 12 Oct 2005 11:00:47 +0000 (+0000) Subject: Fixed unicode support for strip_tags() X-Git-Tag: RELEASE_0_9_1~139 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7adf1a259c192e5ae9dff92aadeb6a7d758c8f42;p=php Fixed unicode support for strip_tags() --- diff --git a/ext/standard/string.c b/ext/standard/string.c index 49b7a7f59f..f47d86944a 100644 --- a/ext/standard/string.c +++ b/ext/standard/string.c @@ -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;