[1/3] IPsec: Fix extra whitespace in exported certificates
Commit Message
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
---
html/cgi-bin/vpnmain.cgi | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
Comments
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Tested-by: Stefan Schantl <stefan.schantl@ipfire.org>
> Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
> ---
> html/cgi-bin/vpnmain.cgi | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/html/cgi-bin/vpnmain.cgi b/html/cgi-bin/vpnmain.cgi
> index d54b56577..980601ba0 100644
> --- a/html/cgi-bin/vpnmain.cgi
> +++ b/html/cgi-bin/vpnmain.cgi
> @@ -849,7 +849,7 @@ END
> print "Content-Disposition: attachment;
> filename=cacert.pem\r\n\r\n";
>
> my @cert =
> &General::system_output("/usr/bin/openssl", "x509", "-in",
> "${General::swroot}/ca/cacert.pem");
> - print "@cert";
> + print join("", @cert);
> exit(0);
> }
> ###
> @@ -861,7 +861,7 @@ END
> print "Content-Disposition: attachment;
> filename=hostcert.pem\r\n\r\n";
>
> my @cert =
> &General::system_output("/usr/bin/openssl", "x509", "-in",
> "${General::swroot}/certs/hostcert.pem");
> - print "@cert";
> + print join("", @cert);
> exit(0);
> }
> ###
@@ -849,7 +849,7 @@ END
print "Content-Disposition: attachment; filename=cacert.pem\r\n\r\n";
my @cert = &General::system_output("/usr/bin/openssl", "x509", "-in", "${General::swroot}/ca/cacert.pem");
- print "@cert";
+ print join("", @cert);
exit(0);
}
###
@@ -861,7 +861,7 @@ END
print "Content-Disposition: attachment; filename=hostcert.pem\r\n\r\n";
my @cert = &General::system_output("/usr/bin/openssl", "x509", "-in", "${General::swroot}/certs/hostcert.pem");
- print "@cert";
+ print join("", @cert);
exit(0);
}
###