aboutsummaryrefslogtreecommitdiffstats
path: root/include/text.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-08-18 19:14:13 -0700
committerFriendika <info@friendika.com>2011-08-18 19:14:13 -0700
commit457f8c3e957859972b6b0c8a235d38da0986bcbf (patch)
treeba5addd14e4a78ba5ca8a6d2fe43788b03111d02 /include/text.php
parent2df7251b349fa3ef9650cf8adb1fb680f253930d (diff)
downloadvolse-hubzilla-457f8c3e957859972b6b0c8a235d38da0986bcbf.tar.gz
volse-hubzilla-457f8c3e957859972b6b0c8a235d38da0986bcbf.tar.bz2
volse-hubzilla-457f8c3e957859972b6b0c8a235d38da0986bcbf.zip
use mb_strlen when iterating utf8
Diffstat (limited to 'include/text.php')
-rw-r--r--include/text.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/text.php b/include/text.php
index 803bf0e51..b13cf980f 100644
--- a/include/text.php
+++ b/include/text.php
@@ -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 ) {