From bf69854d401332960a6efae21f9bf66cfef3de68 Mon Sep 17 00:00:00 2001 From: Mark Nelson Date: Fri, 13 Jul 2018 10:45:02 +0800 Subject: [PATCH] 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. --- message/output/popup/mark_notification_read.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/message/output/popup/mark_notification_read.php b/message/output/popup/mark_notification_read.php index 5f334a77b3d..93ecb6d269e 100644 --- a/message/output/popup/mark_notification_read.php +++ b/message/output/popup/mark_notification_read.php @@ -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));