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-13 10:45:02 +08:00
parent d2eb1ca91e
commit 7d5b9da80c

View File

@ -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.