sidebar: Escape HTML for already added realm.

For the new servers we are already pushing the realm
details after escaping data but for already saved servers
we should escape the same to avoid any security issue.
This commit is contained in:
Akash Nimare
2018-06-05 02:23:18 +05:30
parent 1eabf5c5a2
commit f7696cc04d

View File

@@ -227,7 +227,7 @@ class ServerManagerView {
}
onHover(index, serverName) {
this.$serverIconTooltip[index].innerText = serverName;
this.$serverIconTooltip[index].innerHTML = escape(serverName);
this.$serverIconTooltip[index].removeAttribute('style');
// To handle position of servers' tooltip due to scrolling of list of organizations
// This could not be handled using CSS, hence the top of the tooltip is made same