mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 04:30:15 +01:00
MDL-46227 Fix XSS in scheduled tasks
This commit is contained in:
parent
18619d8440
commit
79a70e776e
@ -104,11 +104,11 @@ if ($mform && ($mform->is_cancelled() || !empty($CFG->preventscheduledtaskchange
|
||||
|
||||
} else {
|
||||
echo $OUTPUT->header();
|
||||
$error = optional_param('error', '', PARAM_RAW);
|
||||
$error = optional_param('error', '', PARAM_NOTAG);
|
||||
if ($error) {
|
||||
echo $OUTPUT->notification($error, 'notifyerror');
|
||||
}
|
||||
$success = optional_param('success', '', PARAM_RAW);
|
||||
$success = optional_param('success', '', PARAM_NOTAG);
|
||||
if ($success) {
|
||||
echo $OUTPUT->notification($success, 'notifysuccess');
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user