From b54a1cab8c54d059f9ee0364cc4df2bbf539be4a Mon Sep 17 00:00:00 2001 From: Ad Schellevis Date: Fri, 10 May 2019 20:58:01 +0200 Subject: [PATCH] OpenVPN, kill another spot of free text impossible to protect input (in the wizard). For the time being, an admin user could still change this after wizard execution in the server page. --- src/etc/inc/plugins.inc.d/openvpn/wizard.inc | 1 - src/wizard/openvpn.xml | 8 -------- 2 files changed, 9 deletions(-) diff --git a/src/etc/inc/plugins.inc.d/openvpn/wizard.inc b/src/etc/inc/plugins.inc.d/openvpn/wizard.inc index 7f701a552..a4dd63b93 100644 --- a/src/etc/inc/plugins.inc.d/openvpn/wizard.inc +++ b/src/etc/inc/plugins.inc.d/openvpn/wizard.inc @@ -635,7 +635,6 @@ function step12_submitphpaction() $pconfig['step10']['descr'] = substr($pconfig['step10']['descr'], 0, 30); } $server['description'] = $pconfig['step10']['descr']; - $server['custom_options'] = $pconfig['step10']['advanced']; if (isset($pconfig['step10']['tlsauth'])) { if (isset($pconfig['step10']['gentlskey'])) { $tlskey = openvpn_create_key(); diff --git a/src/wizard/openvpn.xml b/src/wizard/openvpn.xml index 50bf5d46b..b7e319ab0 100644 --- a/src/wizard/openvpn.xml +++ b/src/wizard/openvpn.xml @@ -919,14 +919,6 @@ wizardtemp->step10->wins2 A Windows Internet Name Service (WINS) server to provide for connecting clients, which allows them to browse Windows shares. This is typically an Active Directory Domain Controller, designated WINS server, or Samba server. - - Advanced - textarea - 30 - 5 - Enter any additional options you would like to add to the OpenVPN server configuration here, separated by a semicolon. EXAMPLE: push "route 10.0.0.0 255.255.255.0" - wizardtemp->step10->advanced - Next submit