From: Adolf Belka Date: Tue, 30 May 2023 11:13:41 +0000 (+0200) Subject: ovpnmain.cgi: Fix Bug#13136 - Allow spaces when editing a static ip address pool... X-Git-Tag: v2.27-core176~30 X-Git-Url: http://git.ipfire.org/?p=ipfire-2.x.git;a=commitdiff_plain;h=30dc340714b80f1bbf75e7449a9130a5bfad8f6a 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 Signed-off-by: Adolf Belka --- diff --git a/html/cgi-bin/ovpnmain.cgi b/html/cgi-bin/ovpnmain.cgi index efc85b77b6..f734331faa 100755 --- a/html/cgi-bin/ovpnmain.cgi +++ b/html/cgi-bin/ovpnmain.cgi @@ -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; }