Commit e020e0b528db251663530a1a398d934049ea14fa

Authored by jonathan_byrne
1 parent f3bb28f0

KTS-2705

"Comment length not being calculated properly in the Delete, Move, Archive, Check in, Check out comment fields."

Fixed
Both normal and utf-8 character sets lengths should be calculated correctly now.

Committed By: Jonathan Byrne
Reviewed By: Jalaloedien Abrahams

git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@7686 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing 1 changed file with 2 additions and 2 deletions
lib/util/ktutil.inc
... ... @@ -175,10 +175,10 @@ class KTUtil {
175 175 }
176 176  
177 177 //this function fudges the strlen. It returns a ? when the character is a multi-byte character.
178   - //str len is therefore measured correctly.
  178 + //str len is therefore measured correctly by counting the ?'s.
179 179 //http://www.phpwact.org/php/i18n/charsets
180 180 function utf8_strlen($string){
181   - return strlen(utf8_decode($str));
  181 + return strlen(utf8_decode($string));
182 182 }
183 183  
184 184 static function &arrayGet($aArray, $sKey, $mDefault = null, $bDefaultIfEmpty = true) {
... ...