mirror of
https://github.com/webmin/webmin.git
synced 2026-03-20 16:50:24 +00:00
Underscore is accepted in a DHCP hostname https://sourceforge.net/tracker/?func=detail&atid=117457&aid=3547656&group_id=17457
This commit is contained in:
@@ -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'};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user