diff --git a/core/lib/Foswiki/Configure/Dependency.pm b/core/lib/Foswiki/Configure/Dependency.pm index 75724c968..a0915f763 100644 --- a/core/lib/Foswiki/Configure/Dependency.pm +++ b/core/lib/Foswiki/Configure/Dependency.pm @@ -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