mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-09-25 10:48:40 +02:00
fix(core): previous commit mistake (#3138)
This commit is contained in:
parent
7c8afd7eb4
commit
5aedfeb8ea
@ -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