forked from science-ation/science-ation
Fix encoding problems on firstname/lastname (and all user_personal) fields
This commit is contained in:
parent
3442c2347d
commit
b4d5ec01a9
@ -113,7 +113,7 @@ case 'save':
|
|||||||
$save = true;
|
$save = true;
|
||||||
/* Set values */
|
/* Set values */
|
||||||
foreach($fields as $f) {
|
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 */
|
/* Allow the user to clear a field regardless of regex */
|
||||||
if($u[$f] == '') continue;
|
if($u[$f] == '') continue;
|
||||||
|
|
||||||
@ -159,7 +159,7 @@ case 'save':
|
|||||||
|
|
||||||
if($save == true) {
|
if($save == true) {
|
||||||
user_save($u);
|
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
|
//reload the user record because we dont know if we saved or didnt save above, we just want
|
||||||
|
Loading…
Reference in New Issue
Block a user