Skip to content

Commit

Permalink
Underscore is accepted in a DHCP hostname https://sourceforge.net/tra…
Browse files Browse the repository at this point in the history
  • Loading branch information
jcameron committed Jul 23, 2012
1 parent c98d983 commit 6c035c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dhcpd/save_host.cgi
Original file line number Diff line number Diff line change
Expand Up @@ -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'};

Expand Down

0 comments on commit 6c035c6

Please sign in to comment.