MDL-45774 Navigation changes: Extra cleaning for mailformat setting

This commit is contained in:
Damyon Wiese 2015-04-08 15:34:13 +08:00 committed by Adrian Greeve
parent 221210e9b2
commit e9f1284929

View File

@ -130,7 +130,7 @@ if (($form = data_submitted()) && confirm_sesskey()) {
print_error('cannotupdateusermsgpref');
}
$user->mailformat = $form->mailformat;
$user->mailformat = clean_param($form->mailformat, PARAM_INT);
user_update_user($user, false, false);
redirect("$CFG->wwwroot/message/edit.php?id=$user->id");