mirror of
https://github.com/friendica/friendica
synced 2025-04-27 03:10:12 +00:00
use mb_strlen when iterating utf8
This commit is contained in:
parent
2df7251b34
commit
457f8c3e95
2 changed files with 2 additions and 2 deletions
|
@ -147,7 +147,7 @@ if(! function_exists('xmlify')) {
|
|||
function xmlify($str) {
|
||||
$buffer = '';
|
||||
|
||||
for($x = 0; $x < strlen($str); $x ++) {
|
||||
for($x = 0; $x < mb_strlen($str); $x ++) {
|
||||
$char = $str[$x];
|
||||
|
||||
switch( $char ) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue