projects
/
brisk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c1d6396
)
replaced strlen with mb_strlen function
author
Matteo Nastasi
<nastasi@alternativeoutput.it>
Fri, 7 Aug 2015 15:52:44 +0000
(17:52 +0200)
committer
Matteo Nastasi
<nastasi@alternativeoutput.it>
Fri, 7 Aug 2015 15:52:44 +0000
(17:52 +0200)
web/Obj/brisk.phh
patch
|
blob
|
history
diff --git
a/web/Obj/brisk.phh
b/web/Obj/brisk.phh
index
359cc5f
..
6c18990
100644
(file)
--- 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);