mirror of
https://github.com/overte-org/overte.git
synced 2025-04-08 08:14:48 +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);
|
||||
} else {
|
||||
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.";
|
||||
ui.notificationDisplayBanner(message);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue