mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 12:40:01 +01:00
MDL-63451 core_message: Properly escape URLs for notification popup
This commit is contained in:
parent
129783b98c
commit
9eac857649
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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user