mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-28 11:43:25 +02:00
ovpnmain.cgi: Fix for bug #12865 - Static IP address pools - Add network - Name with space
- 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>
This commit is contained in:
committed by
Peter Müller
parent
de6ef4d40a
commit
dcc2f7e0f2
@@ -473,7 +473,7 @@ sub addccdnet
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!&General::validhostname($ccdname))
|
if(!&General::validccdname($ccdname))
|
||||||
{
|
{
|
||||||
$errormessage=$Lang::tr{'ccd err invalidname'};
|
$errormessage=$Lang::tr{'ccd err invalidname'};
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user