MDL-46227 Fix XSS in scheduled tasks
This commit is contained in:
committed by
Marina Glancy
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');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user