mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-05-29 00:59:55 +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);
|
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