mirror of
https://github.com/webmin/webmin.git
synced 2026-05-04 22:30:33 +01:00
text option type must be quoted, like string https://sourceforge.net/p/webadmin/bugs/4998/
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user