]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commit - config/cfgroot/general-functions.pl
general-functions.pl: Fix for bug #12865 - Static IP address pools - Add network...
authorAdolf Belka <adolf.belka@ipfire.org>
Fri, 24 Jun 2022 21:58:57 +0000 (23:58 +0200)
committerPeter Müller <peter.mueller@ipfire.org>
Sat, 25 Jun 2022 09:14:22 +0000 (09:14 +0000)
commit0b4618f9a3817e6d2c76a96b0db00f50fc8e0b57
tree36c002b840097885c3fb190bf069e129eb17bdf7
parentdcc2f7e0f2887e6c15e29971a4d27ecccac884f4
general-functions.pl: Fix for bug #12865 - Static IP address pools - Add network - Name wit>

- 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. This allows letters, upper and lower case,
   numbers, spaces and dashes

Fixes: Bug #12865
Tested-by: Adolf Belka <adolf.belka@ipfire.org>
Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
config/cfgroot/general-functions.pl