diff --git a/dhcpd/save_host.cgi b/dhcpd/save_host.cgi index b6a1ff3b8b..6c493832c7 100755 --- a/dhcpd/save_host.cgi +++ b/dhcpd/save_host.cgi @@ -48,7 +48,7 @@ else { &error_setup($text{'shost_failsave'}); # Validate and save inputs - $in{'name'} =~ /^[a-z0-9\.\-]+$/i || + $in{'name'} =~ /^[a-z0-9\.\-\_]+$/i || &error("'$in{'name'}' $text{'shost_invalidhn'}"); $host->{'comment'} = $in{'desc'};