From e020e0b528db251663530a1a398d934049ea14fa Mon Sep 17 00:00:00 2001 From: jonathan_byrne Date: Thu, 15 Nov 2007 09:17:09 +0000 Subject: [PATCH] KTS-2705 "Comment length not being calculated properly in the Delete, Move, Archive, Check in, Check out comment fields." --- lib/util/ktutil.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/util/ktutil.inc b/lib/util/ktutil.inc index ab35f64..ddf6227 100644 --- a/lib/util/ktutil.inc +++ b/lib/util/ktutil.inc @@ -175,10 +175,10 @@ class KTUtil { } //this function fudges the strlen. It returns a ? when the character is a multi-byte character. - //str len is therefore measured correctly. + //str len is therefore measured correctly by counting the ?'s. //http://www.phpwact.org/php/i18n/charsets function utf8_strlen($string){ - return strlen(utf8_decode($str)); + return strlen(utf8_decode($string)); } static function &arrayGet($aArray, $sKey, $mDefault = null, $bDefaultIfEmpty = true) { -- libgit2 0.21.4