X-Git-Url: https://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=web%2FObj%2Fbrisk.phh;h=586f0d9b23739d5bf51da6ebc0a6695f192a4c27;hb=0fd9bab2d4822c3682dd213e4028789fb8707401;hp=0c94fceb0a0fe2b5c731b1241ec853851a9f8c83;hpb=5897dac31c1dbf45b18c8de0a2cd7a67cb2268b5;p=brisk.git diff --git a/web/Obj/brisk.phh b/web/Obj/brisk.phh index 0c94fce..586f0d9 100644 --- a/web/Obj/brisk.phh +++ b/web/Obj/brisk.phh @@ -1219,7 +1219,7 @@ class Room { $only_you = FALSE; // common settings - $msg = substr($mesg, 6, 128); + $msg = mb_substr($mesg, 6, 128, "UTF-8"); $curtime = time(); $dt = date("H:i ", $curtime); $target = ""; @@ -2677,7 +2677,7 @@ function validate_sess($sess) function validate_name($name) { - $name_new = str_replace(' ', '_', substr(trim($name),0,12)); + $name_new = str_replace(' ', '_', mb_substr(trim($name),0,12, "UTF-8")); for ($i = 0 ; $i < strlen($name_new) ; $i++) { $c = $name_new[$i];