From 6de8b6fd3d57f0e18b48a640c4a594b5d62b9ce1 Mon Sep 17 00:00:00 2001 From: Matteo Nastasi Date: Fri, 7 Aug 2015 17:52:44 +0200 Subject: [PATCH] replaced strlen with mb_strlen function --- web/Obj/brisk.phh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.17.1