X-Git-Url: http://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=web%2FObj%2Fbrisk.phh;h=6c18990b4c052e95fe16d8fca08f8d64fc6c6877;hb=6de8b6fd3d57f0e18b48a640c4a594b5d62b9ce1;hp=359cc5f3d0cbcc2f5267e853cb205b5945964959;hpb=c1d6396ac004614ad08c4f52858359b256502f76;p=brisk.git 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);