diff options
author | Ermal <eri@pfsense.org> | 2010-10-28 18:34:38 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2010-10-28 18:34:38 +0000 |
commit | e3bbd29a562c8d534e52b3c1016935de89b7e586 (patch) | |
tree | 32ee47d9e2fdf04c84e73430035c7f296c523059 /usr/local/www/vpn_openvpn_client.php | |
parent | 7c2551881c7de4c2823f8b0b0f1a2af5eb57961c (diff) | |
download | pfsense-e3bbd29a562c8d534e52b3c1016935de89b7e586.zip pfsense-e3bbd29a562c8d534e52b3c1016935de89b7e586.tar.gz |
Replace \r from custom options otherwise it breaks config.
Diffstat (limited to 'usr/local/www/vpn_openvpn_client.php')
-rw-r--r-- | usr/local/www/vpn_openvpn_client.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/local/www/vpn_openvpn_client.php b/usr/local/www/vpn_openvpn_client.php index 750f936..4b23c95 100644 --- a/usr/local/www/vpn_openvpn_client.php +++ b/usr/local/www/vpn_openvpn_client.php @@ -225,7 +225,7 @@ if ($_POST) { $client['proxy_passwd'] = $pconfig['proxy_passwd']; $client['description'] = $pconfig['description']; $client['mode'] = $pconfig['mode']; - $client['custom_options'] = $pconfig['custom_options']; + $client['custom_options'] = str_replace("\r\n", "\n", $pconfig['custom_options']); if ($tls_mode) { $client['caref'] = $pconfig['caref']; |