]> git.ipfire.org Git - ipfire-2.x.git/commit
general-functions.pl: Update to fix bug #12428
authorAdolf Belka <ahb.ipfire@gmail.com>
Sat, 2 Jan 2021 12:54:45 +0000 (13:54 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 4 Jan 2021 10:44:20 +0000 (10:44 +0000)
commit5b4e33bc3b754dd14ecc279bc421ec232a489507
tree104d86fc1052813ae8a0bdc55f5a83edd57e9213
parent888a21f928d1eb79ae7049bdde394f54ebc39e2c
general-functions.pl: Update to fix bug #12428

- Patch of general-functions.pl for implementation of fix provided
by Bernhard Bitsch in bug #12428.
Had to be modified as that fix gave a failure for single character hostnames.
Updated version prevents spaces being put into hostnames and works for single
character hostnames
- Updated subroutine validfqdn to apply consistent rules for hostname & domain name
portions of fqdn
- Minor updates for consistency across validhostname, validdomainname & validfqdn
- Patch implemented into testbed system and confirmed working for hostnames, domain names
and FQDN's.

Signed-off-by: Adolf Belka <ahb.ipfire@gmail.com>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
config/cfgroot/general-functions.pl