From d5f11f4e27fe1fd7a24e198a3a382e596736ff40 Mon Sep 17 00:00:00 2001 From: Leo-Andres Hofmann Date: Tue, 7 Sep 2021 17:53:09 +0200 Subject: [PATCH] ovpnmain.cgi: Remove unnecessary check/error message This parameter can either be "host" or "net", but the existing check only allows "net" entries. Since other entries are also valid but don't require further action, this patch removes the error message. Fixes: #12686 Signed-off-by: Leo-Andres Hofmann Reviewed-by: Michael Tremer Signed-off-by: Arne Fitzenreiter --- html/cgi-bin/ovpnmain.cgi | 3 --- 1 file changed, 3 deletions(-) diff --git a/html/cgi-bin/ovpnmain.cgi b/html/cgi-bin/ovpnmain.cgi index 3cd2f93813..2ebf384ed1 100644 --- a/html/cgi-bin/ovpnmain.cgi +++ b/html/cgi-bin/ovpnmain.cgi @@ -2183,9 +2183,6 @@ END &General::system("/usr/local/bin/openvpnctrl", "-kn2n", "$confighash{$cgiparams{'KEY'}}[1]"); &writecollectdconf(); } - - } else { - $errormessage = $Lang::tr{'invalid key'}; } } } -- 2.39.2