From: Matteo Nastasi Date: Fri, 7 Aug 2015 15:52:44 +0000 (+0200) Subject: replaced strlen with mb_strlen function X-Git-Tag: v4.18.6~1 X-Git-Url: http://mop.ddnsfree.com/gitweb/?a=commitdiff_plain;h=6de8b6fd3d57f0e18b48a640c4a594b5d62b9ce1;p=brisk.git replaced strlen with mb_strlen function --- diff --git a/web/Obj/brisk.phh b/web/Obj/brisk.phh index 359cc5f..6c18990 100644 --- a/web/Obj/brisk.phh +++ b/web/Obj/brisk.phh @@ -3301,7 +3301,7 @@ function validate_name($name) { $name_new = str_replace(' ', '_', mb_substr(trim($name),0,12, "UTF-8")); - for ($i = 0 ; $i < strlen($name_new) ; $i++) { + for ($i = 0 ; $i < mb_strlen($name_new) ; $i++) { $c = $name_new[$i]; if (($c >= "a" && $c <= "z") || ($c >= "A" && $c <= "Z") || ($c >= "0" && $c <= "9")) return ($name_new);