mirror of
https://github.com/moodle/moodle.git
synced 2025-04-16 14:02:32 +02:00
MDL-45774 Navigation changes: Extra cleaning for mailformat setting
This commit is contained in:
parent
221210e9b2
commit
e9f1284929
@ -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");
|
||||
|
Loading…
x
Reference in New Issue
Block a user