mirror of
https://github.com/eduardogsilva/wireguard_webadmin.git
synced 2026-02-19 11:16:18 +00:00
escape JavaScript in tooltip translations for WireGuard status update
This commit is contained in:
@@ -264,7 +264,7 @@
|
||||
if (!apiIps.includes(ip)) {
|
||||
ipSpan.style.color = 'red';
|
||||
ipSpan.style.textDecoration = 'underline';
|
||||
ipSpan.title = '{% trans 'This address does not appear in the wg show command output, likely indicating that another peer has an IP overlapping this network or that the configuration file is outdated.' %}';
|
||||
ipSpan.title = '{% trans 'This address does not appear in the wg show command output, likely indicating that another peer has an IP overlapping this network or that the configuration file is outdated.'|escapejs %}';
|
||||
allowedIpsIssue = true;
|
||||
}
|
||||
|
||||
@@ -279,7 +279,7 @@
|
||||
if (h5Element && !h5Element.querySelector('.fa-exclamation-triangle')) {
|
||||
const icon = document.createElement('i');
|
||||
icon.className = 'fas fa-exclamation-triangle text-danger blink';
|
||||
icon.title = '{% trans 'At least one address does not appear in the wg show command output, which may indicate that another peer is using an overlapping IP or that the configuration file is outdated.' %}';
|
||||
icon.title = '{% trans 'At least one address does not appear in the wg show command output, which may indicate that another peer is using an overlapping IP or that the configuration file is outdated.'|escapejs %}';
|
||||
h5Element.appendChild(icon);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user