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:
@@ -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));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user