mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 00:16:46 +02:00
MDL-11663 sanitise submitted data when editing users
This commit is contained in:
parent
a3a940c7fb
commit
0165dea2c6
1 changed files with 3 additions and 3 deletions
|
@ -79,9 +79,9 @@
|
|||
check_for_restricted_user($USER->username, "$CFG->wwwroot/course/view.php?id=$course->id");
|
||||
}
|
||||
|
||||
if (isset($usernew->password)) {
|
||||
unset($usernew->password);
|
||||
}
|
||||
unset($usernew->admin);
|
||||
unset($usernew->newadminuser);
|
||||
|
||||
// data cleanup
|
||||
// username is validated in find_form_errors
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue