MDL-63451 core_message: Properly escape URLs for notification popup

This commit is contained in:
Peter Spicer
2018-10-10 13:04:24 +01:00
parent 7daf207db7
commit 7331c8af56
2 changed files with 2 additions and 2 deletions
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);