Bug-fix-patch-19

Solved "Malformed UTF-8 characters" error in user directory listing page
for https://github.com/ladybirdweb/faveo-helpdesk/issues/309
This commit is contained in:
Manish Verma
2016-11-16 10:28:24 +05:30
parent 301d57dafc
commit 92622101cf

View File

@@ -109,7 +109,7 @@ class UserController extends Controller
}
if (strlen($string) > 20) {
// truncate string
$stringCut = substr($string, 0, 20);
$stringCut = mb_substr($string, 0, 20, "UTF-8");
} else {
$stringCut = $string;
}