Skip to content

Commit

Permalink
Merge branch '4.0/raw-mode-on-scalar-ref' into 4.0-trunk
Browse files Browse the repository at this point in the history
  • Loading branch information
tsibley committed Dec 20, 2012
2 parents 651defd + dbeb779 commit 775fb41
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/RT/Crypt/GnuPG.pm
Original file line number Diff line number Diff line change
Expand Up @@ -910,13 +910,15 @@ sub FindProtectedParts {
local $@;
eval {
my $buf = '';
open my $fh, '>:raw', \$buf
open my $fh, '>', \$buf
or die "Couldn't open scalar for writing: $!";
binmode $fh, ":raw";
$decoder->decode($io, $fh);
close $fh or die "Couldn't close scalar: $!";

open $fh, '<:raw', \$buf
open $fh, '<', \$buf
or die "Couldn't re-open scalar for reading: $!";
binmode $fh, ":raw";
$io = $fh;
1;
} or do {
Expand Down

0 comments on commit 775fb41

Please sign in to comment.