MDL-63451 core_message: Properly escape URLs for notification popup
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -227,7 +227,7 @@ define(['jquery', 'core/ajax', 'core/templates', 'core/str', 'core/url',
|
||||
notificationid: notification.id
|
||||
};
|
||||
if (notification.contexturl) {
|
||||
notificationurlparams.redirecturl = notification.contexturl;
|
||||
notificationurlparams.redirecturl = encodeURIComponent(notification.contexturl);
|
||||
}
|
||||
notification.contexturl = URL.relativeUrl('message/output/popup/mark_notification_read.php', notificationurlparams);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user