MDL-62889 message_popup: allow redirects to external URLs

Many institutions create notifications that link to an
external service. We need to allow redirects to these
systems.
This commit is contained in:
Mark Nelson
2018-07-18 13:18:15 +08:00
parent f52e88ac70
commit bf69854d40
@@ -31,7 +31,7 @@ if (isguestuser()) {
}
$notificationid = required_param('notificationid', PARAM_INT);
$redirecturl = optional_param('redirecturl', $CFG->wwwroot, PARAM_LOCALURL);
$redirecturl = optional_param('redirecturl', $CFG->wwwroot, PARAM_URL);
$notification = $DB->get_record('message', array('id' => $notificationid, 'notification' => 1));