Skip to content

Commit

Permalink
* Avoid loading modules from relative paths in @inc for Text::Diff etc.
Browse files Browse the repository at this point in the history
  Also reported by John Lightsey.
  • Loading branch information
audreyt committed Apr 6, 2015
1 parent 8a91645 commit c41e888
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/Module/Signature.pm
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,8 @@ sub _verify {
my $sigtext = shift || '';
my $plaintext = shift || '';

# Avoid loading modules from relative paths in @INC.
local @INC = grep { File::Spec->file_name_is_absolute($_) } @INC;
local $SIGNATURE = $signature if $signature ne $SIGNATURE;

if ($AutoKeyRetrieve and !$CanKeyRetrieve) {
Expand Down

0 comments on commit c41e888

Please sign in to comment.