Skip to content

Commit

Permalink
Item15203: backing off using a normal eval()
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelDaum committed Jul 17, 2023
1 parent 8079849 commit b4e98fc
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions core/lib/Foswiki/Configure/Dependency.pm
Expand Up @@ -852,12 +852,7 @@ sub extractModuleVersion {
}

sub _eval_version {
my ($expr) = @_;

my $s = Safe->new;

$s->reval( '$VERSION = ' . $expr );
return $s->reval('$VERSION');
return eval(shift);
}

=begin TML
Expand Down

0 comments on commit b4e98fc

Please sign in to comment.