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-17 12:00:13 +08:00
parent 38d309036c
commit 1d59ae4286
@@ -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('notifications', array('id' => $notificationid));
// Check notification belongs to this user.