--- loncom/interface/domainprefs.pm 2021/11/24 04:25:01 1.392 +++ loncom/interface/domainprefs.pm 2021/11/28 18:43:37 1.393 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Handler to set domain-wide configuration settings # -# $Id: domainprefs.pm,v 1.392 2021/11/24 04:25:01 raeburn Exp $ +# $Id: domainprefs.pm,v 1.393 2021/11/28 18:43:37 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -7791,7 +7791,8 @@ sub print_wafproxy { '
'.$lt{'remoteip'}.': '.
@@ -20509,18 +20510,17 @@ sub modify_wafproxy {
$possible =~ s/[\r\n]+/\s/g;
$possible =~ s/\s*-\s*/-/g;
$possible =~ s/\s+/,/g;
+ $possible =~ s/,+/,/g;
}
$count = 0;
if ($possible ne '') {
foreach my $poss (split(/\,/,$possible)) {
$count ++;
- if (&validate_ip_pattern($poss)) {
+ $poss = &validate_ip_pattern($poss);
+ if ($poss ne '') {
push(@ok,$poss);
}
}
- if (@ok) {
- $wafproxy{$item} = join(',',@ok);
- }
my $diff = $count - scalar(@ok);
if ($diff) {
push(@warnings,' |