diff options
author | Friendika <info@friendika.com> | 2011-08-18 19:14:13 -0700 |
---|---|---|
committer | Friendika <info@friendika.com> | 2011-08-18 19:14:13 -0700 |
commit | 457f8c3e957859972b6b0c8a235d38da0986bcbf (patch) | |
tree | ba5addd14e4a78ba5ca8a6d2fe43788b03111d02 /include/text.php | |
parent | 2df7251b349fa3ef9650cf8adb1fb680f253930d (diff) | |
download | volse-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.php | 2 |
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 ) { |