From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefan Schantl To: development@lists.ipfire.org Subject: [PATCHv2] ovpnmain.cgi: Fix typos. Date: Tue, 22 Jun 2021 14:56:52 +0200 Message-ID: <20210622125652.2969-1-stefan.schantl@ipfire.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============6118892513417236809==" List-Id: --===============6118892513417236809== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Signed-off-by: Stefan Schantl --- html/cgi-bin/ovpnmain.cgi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/html/cgi-bin/ovpnmain.cgi b/html/cgi-bin/ovpnmain.cgi index e6b272f03..7a2833ce6 100644 --- a/html/cgi-bin/ovpnmain.cgi +++ b/html/cgi-bin/ovpnmain.cgi @@ -1235,7 +1235,7 @@ if ($cgiparams{'ACTION'} eq $Lang::tr{'save'} && $cgipa= rams{'TYPE'} eq '' && $cg if ( $vpnsettings{'ENABLED_BLUE'} eq 'on' ) { &General::system("touch", "${General::swroot}/ovpn/enable_blue"); } else { - unlink(${General::swroot}/ovpn/enable_blue); + unlink("${General::swroot}/ovpn/enable_blue"); } =20 if ( $vpnsettings{'ENABLED_ORANGE'} eq 'on' ) { @@ -1497,7 +1497,7 @@ END } } =20 - @casubject =3D &General::system_output("/usr/bin/openssl", "x509", "-tex= t", "-in", "${General::swroot}/ovpn/ca/$cgiparams{'CA_NAME'}cert.pem"); + my @casubject =3D &General::system_output("/usr/bin/openssl", "x509", "-= text", "-in", "${General::swroot}/ovpn/ca/$cgiparams{'CA_NAME'}cert.pem"); my $casubject; =20 foreach my $line (@casubject) { @@ -2526,7 +2526,7 @@ else =20 if ($confighash{$cgiparams{'KEY'}}) { # Revoke certificate if certificate was deleted and rewrite the CRL - &General::system("/usr/bin/openssl", "ca", "-revoke", "${General::swroot}/= ovpn/certs/$confighash{$cgiparams{'KEY'}}[1]cert.pem", "-config", "${General:= :swroot}/ovpn/openssl/ovpn.cnf)"; + &General::system("/usr/bin/openssl", "ca", "-revoke", "${General::swroot}/= ovpn/certs/$confighash{$cgiparams{'KEY'}}[1]cert.pem", "-config", "${General:= :swroot}/ovpn/openssl/ovpn.cnf"); &General::system("/usr/bin/openssl", "ca", "-gencrl", "-out", "${General::= swroot}/ovpn/crls/cacrl.pem", "-config", "${General::swroot}/ovpn/openssl/ovp= n.cnf"); =20 ### --=20 2.20.1 --===============6118892513417236809==--