Commit 9fb16435ae3f9e1d6c22b0227630872b20740a59
1 parent
38e3397a
KTS-2829
"Tags containing special characters are truncated at the first special character the system encounters." Fixed. Changed strlower command to mb_strtolower to cater for special characters. Committed By: Jonathan Byrne Reviewed By: Jalaloedien Abrahams git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@8152 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
1 additions
and
2 deletions
plugins/tagcloud/TagCloudTriggers.php
| ... | ... | @@ -94,8 +94,7 @@ class KTAddDocumentTrigger { |
| 94 | 94 | |
| 95 | 95 | foreach($tags as $sTag) |
| 96 | 96 | { |
| 97 | - $sTag=strtolower(trim($sTag)); | |
| 98 | - | |
| 97 | + $sTag = mb_strtolower(trim($sTag), mb_detect_encoding($sTag)); | |
| 99 | 98 | $res = DBUtil::getOneResult(array("SELECT id FROM $words_table WHERE tag = ?", array($sTag))); |
| 100 | 99 | |
| 101 | 100 | if (PEAR::isError($res)) { | ... | ... |