From mboxrd@z Thu Jan 1 00:00:00 1970 From: Erik Kapfer To: development@lists.ipfire.org Subject: [PATCH] OpenVPN: Prevent internal server error cause of bad header wrapper Date: Thu, 21 Jun 2018 11:12:53 +0200 Message-ID: <1529572373-16580-1-git-send-email-erik.kapfer@ipfire.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============6861453536353344205==" List-Id: --===============6861453536353344205== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable This fixes #11772 . If the X509 are deleted, the openvpnctrl output generates a bad header wrappe= r error from the CGI which causes an internal server error. The redirection of the openvpnctrl out= put fixes this. Signed-off-by: Erik Kapfer --- html/cgi-bin/ovpnmain.cgi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/html/cgi-bin/ovpnmain.cgi b/html/cgi-bin/ovpnmain.cgi index 4bc3473..5cd19a0 100644 --- a/html/cgi-bin/ovpnmain.cgi +++ b/html/cgi-bin/ovpnmain.cgi @@ -1181,7 +1181,7 @@ SETTINGS_ERROR: delete $confighash{$cgiparams{'$key'}}; } =20 - system ("/usr/local/bin/openvpnctrl -drrd $name"); + system ("/usr/local/bin/openvpnctrl -drrd $name &>/dev/null"); } while ($file =3D glob("${General::swroot}/ovpn/ca/*")) { unlink $file; --=20 2.7.4 --===============6861453536353344205==--