Merge pull request #3519 from dmitrylyzo/fix-escapehtml

Escape HTML

(cherry picked from commit ef811e699ca4473b2548badb6295256bccb82ea9)
Signed-off-by: crobibero <cody@robibe.ro>
This commit is contained in:
Bill Thornton 2022-03-31 11:42:34 -04:00 committed by crobibero
parent a74ddbb5ca
commit 7ec51f111c
6 changed files with 8 additions and 7 deletions

View file

@ -949,7 +949,7 @@ import ServerConnections from '../ServerConnections';
}, item.ChannelName));
} else {
lines.push(escapeHtml(item.ChannelName) || '&nbsp;');
lines.push(escapeHtml(item.ChannelName || '') || '&nbsp;');
}
}
@ -981,7 +981,7 @@ import ServerConnections from '../ServerConnections';
if (item.RecordAnyChannel) {
lines.push(globalize.translate('AllChannels'));
} else {
lines.push(escapeHtml(item.ChannelName) || globalize.translate('OneChannel'));
lines.push(escapeHtml(item.ChannelName || '') || globalize.translate('OneChannel'));
}
}