mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-26 02:42:58 +02:00
OpenVPN CCD: Fix ccd filename when certificate has spaces in name. Now the filename gets an underscore to provide full functionality of openvpn.
This commit is contained in:
committed by
Michael Tremer
parent
1d109fd2a6
commit
b643120c01
@@ -3980,6 +3980,7 @@ 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'){
|
||||
|
||||
Reference in New Issue
Block a user