partial cleanup of mod/profile_photo - needs a LOT more

This commit is contained in:
friendica
2013-02-05 20:14:19 -08:00
parent f3eb2eb9e7
commit 2a6abaf9d5
3 changed files with 69 additions and 54 deletions

View File

@@ -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 ) {