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.

This commit is contained in:
Ad Schellevis 2019-05-10 20:58:01 +02:00
parent d62015df1c
commit b54a1cab8c
2 changed files with 0 additions and 9 deletions

View File

@ -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();

View File

@ -919,14 +919,6 @@
<bindstofield>wizardtemp->step10->wins2</bindstofield>
<description>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.</description>
</field>
<field>
<name>Advanced</name>
<type>textarea</type>
<cols>30</cols>
<rows>5</rows>
<description>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"</description>
<bindstofield>wizardtemp->step10->advanced</bindstofield>
</field>
<field>
<name>Next</name>
<type>submit</type>