From mboxrd@z Thu Jan 1 00:00:00 1970 From: git@ipfire.org To: ipfire-scm@lists.ipfire.org Subject: [git.ipfire.org] IPFire 2.x development tree branch, next, updated. b643120c014c7ece5d13587376bfc9f09b706b11 Date: Mon, 07 Jan 2013 12:31:20 +0100 Message-ID: <20130107113124.062CA200DC@argus.ipfire.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============6423635578408696030==" List-Id: --===============6423635578408696030== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "IPFire 2.x development tree". The branch, next has been updated via b643120c014c7ece5d13587376bfc9f09b706b11 (commit) from 1d109fd2a63305c5ec3653bbb7888a2142aa744b (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit b643120c014c7ece5d13587376bfc9f09b706b11 Author: Alexander Marx Date: Mon Jan 7 08:46:42 2013 +0100 OpenVPN CCD: Fix ccd filename when certificate has spaces in name. Now th= e filename gets an underscore to provide full functionality of openvpn. ----------------------------------------------------------------------- Summary of changes: html/cgi-bin/ovpnmain.cgi | 1 + src/scripts/ovpn-ccd-convert | 1 + 2 files changed, 2 insertions(+) Difference in files: diff --git a/html/cgi-bin/ovpnmain.cgi b/html/cgi-bin/ovpnmain.cgi index 6def979..b3c7b48 100755 --- a/html/cgi-bin/ovpnmain.cgi +++ b/html/cgi-bin/ovpnmain.cgi @@ -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] =3D~ 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'){ diff --git a/src/scripts/ovpn-ccd-convert b/src/scripts/ovpn-ccd-convert index ac76435..7aa8cf1 100644 --- a/src/scripts/ovpn-ccd-convert +++ b/src/scripts/ovpn-ccd-convert @@ -31,6 +31,7 @@ open(FILE,"/var/ipfire/ovpn/server.conf"); &General::readhasharray("/var/ipfire/ovpn/ovpnconfig", \%ovpnconfig); foreach my $key (keys %ovpnconfig){ if($ovpnconfig{$key}[32] eq '' && $ovpnconfig{$key}[3] eq 'host'){ + $ovpnconfig{$key}[2] =3D~ s/ /_/gi; open ( CCDRWCONF,'>',"/var/ipfire/ovpn/ccd/$ovpnconfig{$key}[2]") or die "= Unable to create clientconfigfile $!"; print CCDRWCONF "# OpenVPN Clientconfig from CCD extension by Copymaster#\= n\n"; print CCDRWCONF "#This client uses the dynamic pool\n\n"; hooks/post-receive -- IPFire 2.x development tree --===============6423635578408696030==--