mirror of
https://github.com/webmin/webmin.git
synced 2026-02-03 06:03:28 +00:00
Fix to filter out scope identifier
* We could support it but it would be much more work
This commit is contained in:
@@ -21,9 +21,12 @@ for($i=0; defined($ns = $in{"nameserver_$i"}); $i++) {
|
||||
$ns = $in{"nameserver_$i"};
|
||||
$ns =~ s/^\s+//; $ns =~ s/\s+$//;
|
||||
if ($ns) {
|
||||
&check_ipaddress_any($ns) ||
|
||||
my $nns = $ns;
|
||||
# Just remove scope identifier (%interface) for simplicity
|
||||
$nns =~ s/\%.*$//;
|
||||
&check_ipaddress_any($nns) ||
|
||||
&error(&text('dns_ens', &html_escape($ns)));
|
||||
push(@{$dns->{'nameserver'}}, $ns);
|
||||
push(@{$dns->{'nameserver'}}, $nns);
|
||||
}
|
||||
}
|
||||
if ($in{'name0'}) {
|
||||
|
||||
Reference in New Issue
Block a user