From 171c5934d9b08750368a973a8e91def1c4e7c723 Mon Sep 17 00:00:00 2001 From: Pavel Loginov Date: Thu, 19 Mar 2020 14:11:35 +0100 Subject: [PATCH] v4.1.0.0 https://haproxy-wi.org/changelog.py#4_1 --- app/templates/hapservers.html | 4 +++- app/templates/ovw.html | 4 +++- app/templates/waf.html | 4 +++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/app/templates/hapservers.html b/app/templates/hapservers.html index 106e81ed..91b107e3 100644 --- a/app/templates/hapservers.html +++ b/app/templates/hapservers.html @@ -26,7 +26,9 @@ var hostnamea = [] {% for s in servers %} ip.push("{{s[2]}}") - hostnamea.push("{{s[1]}}") + var host = "{{s[1]}}" + host = host.replace(/\./g, '\\.'); + hostnamea.push(host) {% endfor %}
diff --git a/app/templates/ovw.html b/app/templates/ovw.html index f95e3caf..96923926 100644 --- a/app/templates/ovw.html +++ b/app/templates/ovw.html @@ -7,7 +7,9 @@ var hostnamea = [] {% for s in servers %} ip.push("{{s[2]}}") - hostnamea.push("{{s[1]}}") + var host = "{{s[1]}}" + host = host.replace(/\./g, '\\.'); + hostnamea.push(host) {% endfor %}