fix(core): previous commit mistake (#3138)

This commit is contained in:
qgarnier 2021-09-23 18:10:06 +02:00 committed by GitHub
parent 7c8afd7eb4
commit 5aedfeb8ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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}";