summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-openvpn/luasrc/view/openvpn/cbi-select-input-add.htm
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2020-03-25 09:23:31 +0100
committerGitHub <noreply@github.com>2020-03-25 09:23:31 +0100
commit81693ff2c8d3adf5fa211532a1893d293c9a2e82 (patch)
tree785e96087894a4ee705563c720307609b38191ea /applications/luci-app-openvpn/luasrc/view/openvpn/cbi-select-input-add.htm
parentca17ec9b4f0571144ebdf124abe5edd9ecf7481b (diff)
parent51579cd49e67890a427bb56a76dc49719d39a9f6 (diff)
Merge pull request #3783 from dibdot/ovpn_fix
luci-app-openvpn: fix upload input validator
Diffstat (limited to 'applications/luci-app-openvpn/luasrc/view/openvpn/cbi-select-input-add.htm')
-rw-r--r--applications/luci-app-openvpn/luasrc/view/openvpn/cbi-select-input-add.htm4
1 files changed, 2 insertions, 2 deletions
diff --git a/applications/luci-app-openvpn/luasrc/view/openvpn/cbi-select-input-add.htm b/applications/luci-app-openvpn/luasrc/view/openvpn/cbi-select-input-add.htm
index 3e83df20a2..9ca1e87fa4 100644
--- a/applications/luci-app-openvpn/luasrc/view/openvpn/cbi-select-input-add.htm
+++ b/applications/luci-app-openvpn/luasrc/view/openvpn/cbi-select-input-add.htm
@@ -3,7 +3,7 @@
//<![CDATA[
function vpn_add()
{
- var vpn_name = div_add.querySelector("#instance_name1").value.replace(/[^\x00-\x7F]|[\s!@#$%^&*()\-+=\[\]{};':"\\|,<>\/?]/g,'');
+ var vpn_name = div_add.querySelector("#instance_name1").value.replace(/[^\x00-\x7F]|[\s\.!@#$%^&*()\-+=\[\]{};':"\\|,<>\/?]/g,'');
var vpn_template = div_add.querySelector("#instance_template").value;
var form = document.getElementsByName('cbi')[0];
@@ -31,7 +31,7 @@
function vpn_upload()
{
- var vpn_name = div_upload.querySelector("#instance_name2").value.replace(/[^\x00-\x7F]|[\s!@#$%^&*()\-+=\[\]{};':"\\|,<>\/?]/g,'');
+ var vpn_name = div_upload.querySelector("#instance_name2").value.replace(/[^\x00-\x7F]|[\s\.!@#$%^&*()\-+=\[\]{};':"\\|,<>\/?]/g,'');
var vpn_file = document.getElementById("ovpn_file").value;
var form = document.getElementsByName('cbi')[0];