(mode) snmp_standard::mode::stringvalue - fix infinite loop (#3769)
This commit is contained in:
parent
16c0cfdcd3
commit
69569136a0
|
@ -242,9 +242,7 @@ sub change_macros {
|
||||||
my ($self, %options) = @_;
|
my ($self, %options) = @_;
|
||||||
|
|
||||||
my $value = $self->{option_results}->{'format_' . $options{severity}};
|
my $value = $self->{option_results}->{'format_' . $options{severity}};
|
||||||
while ($value =~ /%\{(.*?)\}/g) {
|
$value =~ s/%\{(.*?)\}/$self->{macros}->{$1}/g;
|
||||||
$value =~ s/%\{($1)\}/$self->{macros}->{$1}/eg;
|
|
||||||
}
|
|
||||||
|
|
||||||
return $value;
|
return $value;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue