mirror of
https://github.com/webmin/webmin.git
synced 2025-07-23 00:30:33 +00:00
Handle multiple IPv6 addresses properly https://github.com/webmin/webmin/issues/2081
This commit is contained in:
@ -149,11 +149,11 @@ else {
|
|||||||
}
|
}
|
||||||
if (&parse_mode("source", $rule, "s")) {
|
if (&parse_mode("source", $rule, "s")) {
|
||||||
&check_ipmask($in{'source'}) || &error($text{'save_esource'});
|
&check_ipmask($in{'source'}) || &error($text{'save_esource'});
|
||||||
$rule->{'s'}->[1] = $in{'source'};
|
$rule->{'s'}->[1] = join(",", split(/[ \t\r\n,]+/, $in{'source'}));
|
||||||
}
|
}
|
||||||
if (&parse_mode("dest", $rule, "d")) {
|
if (&parse_mode("dest", $rule, "d")) {
|
||||||
&check_ipmask($in{'dest'}) || &error($text{'save_edest'});
|
&check_ipmask($in{'dest'}) || &error($text{'save_edest'});
|
||||||
$rule->{'d'}->[1] = $in{'dest'};
|
$rule->{'d'}->[1] = join(",", split(/[ \t\r\n,]+/, $in{'dest'}));
|
||||||
}
|
}
|
||||||
if (&parse_mode("in", $rule, "i")) {
|
if (&parse_mode("in", $rule, "i")) {
|
||||||
$in{'in'} ne '' || $in{'in_other'} =~ /^\S+$/ ||
|
$in{'in'} ne '' || $in{'in_other'} =~ /^\S+$/ ||
|
||||||
|
Reference in New Issue
Block a user