text option type must be quoted, like string https://sourceforge.net/p/webadmin/bugs/4998/

This commit is contained in:
Jamie Cameron
2017-07-21 22:42:10 -07:00
parent f8a6d2db67
commit 67c87bb229

View File

@@ -152,6 +152,7 @@ if ($config{'dhcpd_version'} >= 3) {
local $atype = $1;
}
elsif ($o && $o->{'values'}->[4] eq 'string' ||
$o && $o->{'values'}->[4] eq 'text' ||
$cv !~ /^([0-9a-fA-F]{1,2}:)*[0-9a-fA-F]{1,2}$/ &&
!&check_ipaddress($cv)) {
# Quote if type is a string, or unknown and not an IP