Skip to content

Commit

Permalink
* Safe status could be confused if empty-body perl tag called,
Browse files Browse the repository at this point in the history
  again introduced by change of position in $MVSAFE::Safe.
  • Loading branch information
Mike Heins committed Feb 2, 2017
1 parent a580c90 commit 2ec6dfa
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/Vend/Interpolate.pm
Expand Up @@ -1684,7 +1684,11 @@ sub tag_perl {

# Skip costly eval of code entirely if perl tag was called with no code,
# likely used only for the side-effect of opening database handles
return if $body !~ /\S/;

if($body !~ /\S/) {
undef $MVSAFE::Safe;
return;
}

$body =~ tr/\r//d if $Global::Windows;

Expand Down

0 comments on commit 2ec6dfa

Please sign in to comment.