MDL-46227 Fix XSS in scheduled tasks

This commit is contained in:
Skylar Kelty 2014-07-02 08:35:24 +01:00 committed by Marina Glancy
parent 18619d8440
commit 79a70e776e

View File

@ -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');
}