mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-27 15:44:21 +02:00
fix(core): previous commit mistake (#3138)
This commit is contained in:
parent
86dd6c761d
commit
a96e5415e5
@ -927,7 +927,7 @@ sub test_eval {
|
|||||||
if ($@) {
|
if ($@) {
|
||||||
die 'Unsafe code evaluation: ' . $@;
|
die 'Unsafe code evaluation: ' . $@;
|
||||||
}
|
}
|
||||||
} elsif (defined($options{values}) {
|
} elsif (defined($options{values})) {
|
||||||
# unsafe code execution. don't need to check if it's safe (with no values)
|
# unsafe code execution. don't need to check if it's safe (with no values)
|
||||||
my $values = $options{values};
|
my $values = $options{values};
|
||||||
$result = eval "$options{test}";
|
$result = eval "$options{test}";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user