aboutsummaryrefslogtreecommitdiffstats
path: root/include/text.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-02-05 20:14:19 -0800
committerfriendica <info@friendica.com>2013-02-05 20:14:19 -0800
commit2a6abaf9d54f7345e04db8b3fb5fe96eaa2a5c1d (patch)
tree98fd3d7d1b0d29e5e2c3fbed5db9067801c0253a /include/text.php
parentf3eb2eb9e7f5da80dae8518a70e05514a203d0f1 (diff)
downloadvolse-hubzilla-2a6abaf9d54f7345e04db8b3fb5fe96eaa2a5c1d.tar.gz
volse-hubzilla-2a6abaf9d54f7345e04db8b3fb5fe96eaa2a5c1d.tar.bz2
volse-hubzilla-2a6abaf9d54f7345e04db8b3fb5fe96eaa2a5c1d.zip
partial cleanup of mod/profile_photo - needs a LOT more
Diffstat (limited to 'include/text.php')
-rw-r--r--include/text.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/text.php b/include/text.php
index 18c5aeaf1..996f769dd 100644
--- a/include/text.php
+++ b/include/text.php
@@ -177,8 +177,9 @@ if(! function_exists('xmlify')) {
function xmlify($str) {
$buffer = '';
- for($x = 0; $x < mb_strlen($str); $x ++) {
- $char = $str[$x];
+ $len = mb_strlen($str);
+ for($x = 0; $x < $len; $x ++) {
+ $char = mb_substr($str,$x,1);
switch( $char ) {