mirror of
https://github.com/overte-org/overte.git
synced 2025-06-22 22:40:32 +02:00
Fix MS20117: Prevent HTML link from appearing in Wallet notification
This commit is contained in:
parent
f3c0118602
commit
051b7cfbb8
1 changed files with 3 additions and 1 deletions
|
@ -615,7 +615,9 @@ function notificationPollCallbackHistory(historyArray) {
|
||||||
ui.notificationDisplayBanner(message);
|
ui.notificationDisplayBanner(message);
|
||||||
} else {
|
} else {
|
||||||
for (var i = 0; i < notificationCount; i++) {
|
for (var i = 0; i < notificationCount; i++) {
|
||||||
message = '"' + (historyArray[i].message) + '" ' +
|
var historyMessage = historyArray[i].message;
|
||||||
|
var sanitizedHistoryMessage = historyMessage.replace(/<\/?[^>]+(>|$)/g, "");
|
||||||
|
message = '"' + sanitizedHistoryMessage + '" ' +
|
||||||
"Open INVENTORY to see all activity.";
|
"Open INVENTORY to see all activity.";
|
||||||
ui.notificationDisplayBanner(message);
|
ui.notificationDisplayBanner(message);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue