]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
ovpnmain.cgi: Fix Bug#13136 - Allow spaces when editing a static ip address pool...
authorAdolf Belka <adolf.belka@ipfire.org>
Tue, 30 May 2023 11:13:41 +0000 (13:13 +0200)
committerPeter Müller <peter.mueller@ipfire.org>
Thu, 22 Jun 2023 21:28:03 +0000 (21:28 +0000)
- 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>
html/cgi-bin/ovpnmain.cgi

index efc85b77b6589459a2e5fa3358a9fb5ed1a74fd2..f734331faa64893bd66524d34fa2fd2076e06e9e 100755 (executable)
@@ -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;
        }