mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 08:22:07 +02:00
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:
parent
d2eb1ca91e
commit
7d5b9da80c
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user