Commit 6cd4d9750f8d9a106866339f77427d031484d76d
1 parent
66fc9bf8
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)) { | ... | ... |