mhonarc-dev

[Bug #3478] Quoted-Printable decoding should also work with lowercase hex numbers

2003-05-19 02:13:43


=================== BUG #3478: LATEST MODIFICATIONS ==================
http://savannah.nongnu.org/bugs/?func=detailbug&bug_id=3478&group_id=1968

Changes by: Earl Hood <earl(_at_)earlhood(_dot_)com>
Date: Mon 05/19/2003 at 04:13 (US/Central)

            What     | Removed                   | Added
---------------------------------------------------------------------------
            Category | MIME Filter               | MIME
          Resolution | None                      | Fixed
        Perl Version | 5.6.1                     | All
   Component Version | 2.5.2                     | <=2.6.3


------------------ Additional Follow-up Comments ----------------------------
Fixed applied to qprint.pl and checked into CVS.



=================== BUG #3478: FULL BUG SNAPSHOT ===================


Submitted by: wanted                  Project: MHonArc                      
Submitted on: Mon 05/05/2003 at 14:33
Category:  MIME                       Severity:  5 - Major                  
Bug Group:  Feature Request           Resolution:  Fixed                    
Assigned to:  None                    Status:  Open                         
Platform Version:  All                Perl Version:  All                    
Component Version:  <=2.6.3           Fixed Release:                        

Summary:  Quoted-Printable decoding should also work with lowercase hex numbers

Original Submission:  During archive processing I've found some Subject: lines 
are not properly decoded from Quoted-Printable in MHonarc.
After some investigation I've located the problem with such headers:
      Subject: =?ISO-8859-2?Q?guz_m=f3zgu?=
is caused by some popular webmail of a Polish portal site, which seems to 
encode characters using lowercase hexadecimal (e.g. "f3") numbers, instead of 
uppercase. RFC 1521 specifies, that the set [A-F] should be used,
but "robust" decoders could make the effort to also interpret [a-f] properly.

The fix is simple: in qprint.pl substitute:
s/=([0-9A-F]{2})/pack("H2",$1)/ge;
with:
s/=([0-9A-Fa-f]{2})/pack("H2",$1)/ge;

Follow-up Comments
*******************

-------------------------------------------------------
Date: Mon 05/19/2003 at 04:13       By: ehood
Fixed applied to qprint.pl and checked into CVS.


CC list is empty


No files currently attached


For detailed info, follow this link:
http://savannah.nongnu.org/bugs/?func=detailbug&bug_id=3478&group_id=1968

---------------------------------------------------------------------
To sign-off this list, send email to majordomo(_at_)mhonarc(_dot_)org with the
message text UNSUBSCRIBE MHONARC-DEV

<Prev in Thread] Current Thread [Next in Thread>