MDL-63451 core_message: Properly escape URLs for notification popup

This commit is contained in:
Peter Spicer 2018-10-10 10:29:15 +01:00
parent 129783b98c
commit 9eac857649
2 changed files with 2 additions and 2 deletions

File diff suppressed because one or more lines are too long

View File

@ -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);