]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
ovpnmain.cgi: Fix for bug #12865 - Static IP address pools - Add network - Name with...
authorAdolf Belka <adolf.belka@ipfire.org>
Fri, 24 Jun 2022 21:58:56 +0000 (23:58 +0200)
committerPeter Müller <peter.mueller@ipfire.org>
Sat, 25 Jun 2022 09:14:22 +0000 (09:14 +0000)
- 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 Pools names
- New subroutine created called validccdname in general-functions.pl

Fixes: Bug #12865
Tested-by: Adolf Belka <adolf.belka@ipfire.org>
Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
html/cgi-bin/ovpnmain.cgi

index 736d175410e8deabbfe88f98f123ec3a6e3d1c6b..90d3710e41ed273a490abb2dbaa0c3e4c28eb1ec 100644 (file)
@@ -473,7 +473,7 @@ sub addccdnet
                return
        }
 
-       if(!&General::validhostname($ccdname))
+       if(!&General::validccdname($ccdname))
        {
                $errormessage=$Lang::tr{'ccd err invalidname'};
                return;