From 93dab123378e3d7b8aaa86c9b12979af07c3d6e9 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Wed, 20 Mar 2024 11:09:39 +0100 Subject: [PATCH] ovpnmain.cgi: Remove more dead code Signed-off-by: Michael Tremer --- html/cgi-bin/ovpnmain.cgi | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/html/cgi-bin/ovpnmain.cgi b/html/cgi-bin/ovpnmain.cgi index be7089ef5..def436f66 100644 --- a/html/cgi-bin/ovpnmain.cgi +++ b/html/cgi-bin/ovpnmain.cgi @@ -3893,11 +3893,6 @@ if ($cgiparams{'TYPE'} eq 'net') { } } -# if (($cgiparams{'TYPE'} eq 'net') && ($cgiparams{'SIDE'} !~ /^(left|right)$/)) { -# $errormessage = $Lang::tr{'ipfire side is invalid'}; -# goto VPNCONF_ERROR; -# } - # Check if there is no other entry with this name if (! $cgiparams{'KEY'}) { foreach my $key (keys %confighash) { @@ -3988,17 +3983,7 @@ if ($cgiparams{'TYPE'} eq 'net') { goto VPNCONF_ERROR; } -#fixplausi - if ($cgiparams{'AUTH'} eq 'psk') { -# if (! length($cgiparams{'PSK'}) ) { -# $errormessage = $Lang::tr{'pre-shared key is too short'}; -# goto VPNCONF_ERROR; -# } -# if ($cgiparams{'PSK'} =~ /['",&]/) { -# $errormessage = $Lang::tr{'invalid characters found in pre-shared key'}; -# goto VPNCONF_ERROR; -# } - } elsif ($cgiparams{'AUTH'} eq 'certreq') { + if ($cgiparams{'AUTH'} eq 'certreq') { if ($cgiparams{'KEY'}) { $errormessage = $Lang::tr{'cant change certificates'}; goto VPNCONF_ERROR; -- 2.39.5