From mboxrd@z Thu Jan 1 00:00:00 1970 From: Adolf Belka To: development@lists.ipfire.org Subject: [PATCH 1/2] ovpnmain.cgi: Fix for bug #12865 - Static IP address pools - Add network - Name with space Date: Fri, 24 Jun 2022 23:58:56 +0200 Message-ID: <20220624215857.3518119-1-adolf.belka@ipfire.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============4507560496053482030==" List-Id: --===============4507560496053482030== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable - The fix for bug #12428 removed spaces from the validhostname subroutine as = hostnames are not supposed to have spaces - This resulted in spaces no longer being allowed for the Static IP Address P= ools names - New subroutine created called validccdname in general-functions.pl Fixes: Bug #12865 Tested-by: Adolf Belka Signed-off-by: Adolf Belka --- 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 736d17541..90d3710e4 100644 --- a/html/cgi-bin/ovpnmain.cgi +++ b/html/cgi-bin/ovpnmain.cgi @@ -473,7 +473,7 @@ sub addccdnet return } =20 - if(!&General::validhostname($ccdname)) + if(!&General::validccdname($ccdname)) { $errormessage=3D$Lang::tr{'ccd err invalidname'}; return; --=20 2.36.1 --===============4507560496053482030==--