diff options
author | jim-p <jimp@pfsense.org> | 2017-01-04 15:35:08 -0500 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2017-01-04 15:35:08 -0500 |
commit | 625b688ca4a7db168e9b2cea6c319728981cff00 (patch) | |
tree | 5360b937ecc2aae9a08eb0141c4c1871b36780dd /src/usr/local/www/vpn_openvpn_client.php | |
parent | e2f0ad13b5c1305c03f5104819ec096d077e496b (diff) | |
download | pfsense-625b688ca4a7db168e9b2cea6c319728981cff00.zip pfsense-625b688ca4a7db168e9b2cea6c319728981cff00.tar.gz |
Fix NCP breaking save on a new server/client. Ticket #7072
Diffstat (limited to 'src/usr/local/www/vpn_openvpn_client.php')
-rw-r--r-- | src/usr/local/www/vpn_openvpn_client.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/usr/local/www/vpn_openvpn_client.php b/src/usr/local/www/vpn_openvpn_client.php index 2e7b554..fba3d43 100644 --- a/src/usr/local/www/vpn_openvpn_client.php +++ b/src/usr/local/www/vpn_openvpn_client.php @@ -91,7 +91,7 @@ if ($_GET['act'] == "del") { if ($_GET['act'] == "new") { $pconfig['ncp_enable'] = "enabled"; - $pconfig['ncp-ciphers'] = "AES-256-GCM, AES-128-GCM"; + $pconfig['ncp-ciphers'] = "AES-256-GCM,AES-128-GCM"; $pconfig['autokey_enable'] = "yes"; $pconfig['tlsauth_enable'] = "yes"; $pconfig['autotls_enable'] = "yes"; @@ -322,7 +322,7 @@ if ($_POST) { if ($pconfig['mode'] != "p2p_shared_key") { if (($pconfig['ncp_enable'] != "disabled") && !empty($pconfig['ncp-ciphers']) && is_array($pconfig['ncp-ciphers'])) { foreach ($pconfig['ncp-ciphers'] as $ncpc) { - if (!in_array($ncpc, $cipher_validation_list)) { + if (!in_array(trim($ncpc), $cipher_validation_list)) { $input_errors[] = gettext("One or more of the selected NCP Algorithms is not valid."); } } |