mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-04-07 20:35:27 +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 ($@) {
|
||||
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)
|
||||
my $values = $options{values};
|
||||
$result = eval "$options{test}";
|
||||
|
Loading…
x
Reference in New Issue
Block a user