mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-09 18:45:54 +02:00
ovpnmain.cgi: Fix Bug#13136 - Allow spaces when editing a static ip address pool name
- This was fixed for creating a static ip address pool name in bug#12865 but was not applied to the case when the static ip address pool name was being edited. - This fix corrects that oversight. Fixes: Bug#13136 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
943c5e7e3c
commit
30dc340714
@@ -505,7 +505,7 @@ sub modccdnet
|
||||
my %ccdhash=();
|
||||
|
||||
# Check if the new name is valid.
|
||||
if(!&General::validhostname($newname)) {
|
||||
if(!&General::validccdname($newname)) {
|
||||
$errormessage=$Lang::tr{'ccd err invalidname'};
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user