diff --git a/system/Helpers/url_helper.php b/system/Helpers/url_helper.php index a392f01772df..20f1f471977e 100644 --- a/system/Helpers/url_helper.php +++ b/system/Helpers/url_helper.php @@ -422,9 +422,9 @@ function safe_mailto(string $email, string $title = '', $attributes = ''): strin } else { - for ($i = 0, $l = strlen($attributes); $i < $l; $i ++) + for ($i = 0, $l = mb_strlen($attributes); $i < $l; $i ++) { - $x[] = $attributes[$i]; + $x[] = mb_substr($attributes, $i, 1); } } }