mirror of
https://github.com/overte-org/overte.git
synced 2025-04-07 21:33:48 +02:00
Merge pull request #14513 from zfox23/MS20117_rawHtmlRemoval
Fix MS20117: Prevent HTML link from appearing in Wallet notification
This commit is contained in:
commit
2776839dff
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