Skip Menu |

This queue is for tickets about the MIME-Base32 CPAN distribution.

Report information
The Basics
Id: 16528
Status: resolved
Priority: 0/
Queue: MIME-Base32

People
Owner: Nobody in particular
Requestors: bzm [...] 2bz.de
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 1.01
Fixed in: 1.301



Subject: Encode/decode trash $_
Hi, encode_rfc3548, decode_rfc3548, encode_09AV and decode_09AV trash $_. This is fixed with the attached patch. thanks.
diff -Nur a/MIME-Base32-1.01/Base32.pm b/MIME-Base32-1.01/Base32.pm --- a/MIME-Base32-1.01/Base32.pm 2003-12-11 07:21:55.000000000 -0600 +++ b/MIME-Base32-1.01/Base32.pm 2005-12-15 15:24:00.477738664 -0600 @@ -33,7 +33,7 @@ # - $_ = shift @_; + local $_ = shift; my( $buffer, $l, $e ); $_=unpack('B*', $_); @@ -51,7 +51,7 @@ } sub decode_rfc3548{ - $_ = shift; + local $_ = shift; my( $l ); tr|A-Z2-7|\0-\37|; @@ -74,7 +74,7 @@ # - $_ = shift @_; + local $_ = shift @_; my( $buffer, $l, $e ); $_=unpack('B*', $_); @@ -92,7 +92,7 @@ } sub decode_09AV{ - $_ = shift; + local $_ = shift; my( $l ); tr|0-9A-V|\0-\37|;
This is resolved as of 1.301. Thanks, Chase
Thank you for pointing out the error and finding a fix. Please let us know if you find anything else! Thanks, Chase