fix ccd config name for openvpn 2.3
authorAlexander Marx <amarx@ipfire.org>
Thu, 9 Jan 2014 10:47:44 +0000 (11:47 +0100)
committerAlexander Marx <amarx@ipfire.org>
Thu, 9 Jan 2014 10:47:44 +0000 (11:47 +0100)
html/cgi-bin/ovpnmain.cgi

index 2f3ac4d..a7973a5 100644 (file)
@@ -3990,7 +3990,6 @@ if ($cgiparams{'TYPE'} eq 'net') {
                        if ( -e "${General::swroot}/ovpn/ccd/$confighash{$key}[2]"){
                                unlink "${General::swroot}/ovpn/ccd/$cgiparams{'CERT_NAME'}";
                        }
-                       $confighash{$key}[2] =~ s/ /_/gi;
                        open ( CCDRWCONF,'>',"${General::swroot}/ovpn/ccd/$confighash{$key}[2]") or die "Unable to create clientconfigfile $!";
                        print CCDRWCONF "# OpenVPN clientconfig from ccd extension by Copymaster#\n\n";
                        if($cgiparams{'CHECK1'} eq 'dynamic'){