From 7adf1a259c192e5ae9dff92aadeb6a7d758c8f42 Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Wed, 12 Oct 2005 11:00:47 +0000 Subject: [PATCH] Fixed unicode support for strip_tags() --- ext/standard/string.c | 1 + 1 file changed, 1 insertion(+) 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; -- 2.50.1