Fix encoding problems on firstname/lastname (and all user_personal) fields

This commit is contained in:
james 2010-02-11 18:13:15 +00:00
parent 3442c2347d
commit b4d5ec01a9

View File

@ -113,7 +113,7 @@ case 'save':
$save = true;
/* Set values */
foreach($fields as $f) {
$u[$f] = stripslashes($_POST[$f]);
$u[$f] = iconv("UTF-8","ISO-8859-1",stripslashes($_POST[$f]));
/* Allow the user to clear a field regardless of regex */
if($u[$f] == '') continue;
@ -159,7 +159,7 @@ case 'save':
if($save == true) {
user_save($u);
happy_("%1 %2 successfully updated",array($_POST['firstname'],$_POST['lastname']));
happy_("%1 %2 successfully updated",array($u['firstname'],$u['lastname']));
}
//reload the user record because we dont know if we saved or didnt save above, we just want