From 6cd4d9750f8d9a106866339f77427d031484d76d Mon Sep 17 00:00:00 2001 From: jonathan_byrne Date: Tue, 26 Feb 2008 08:47:54 +0000 Subject: [PATCH] KTS-2829 "Tags containing special characters are truncated at the first special character the system encounters." --- plugins/tagcloud/TagCloudTriggers.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/plugins/tagcloud/TagCloudTriggers.php b/plugins/tagcloud/TagCloudTriggers.php index 9de5f2c..0d63da3 100644 --- a/plugins/tagcloud/TagCloudTriggers.php +++ b/plugins/tagcloud/TagCloudTriggers.php @@ -94,8 +94,7 @@ class KTAddDocumentTrigger { foreach($tags as $sTag) { - $sTag=strtolower(trim($sTag)); - + $sTag = mb_strtolower(trim($sTag), mb_detect_encoding($sTag)); $res = DBUtil::getOneResult(array("SELECT id FROM $words_table WHERE tag = ?", array($sTag))); if (PEAR::isError($res)) { -- libgit2 0.21.4