spamassassin-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mmarti...@apache.org
Subject svn commit: r1646769 - /spamassassin/trunk/lib/Mail/SpamAssassin/Util.pm
Date Fri, 19 Dec 2014 15:21:58 GMT
Author: mmartinec
Date: Fri Dec 19 15:21:58 2014
New Revision: 1646769

URL: http://svn.apache.org/r1646769
Log:
oops, one more stab at MS::Util::qp_decode

Modified:
    spamassassin/trunk/lib/Mail/SpamAssassin/Util.pm

Modified: spamassassin/trunk/lib/Mail/SpamAssassin/Util.pm
URL: http://svn.apache.org/viewvc/spamassassin/trunk/lib/Mail/SpamAssassin/Util.pm?rev=1646769&r1=1646768&r2=1646769&view=diff
==============================================================================
--- spamassassin/trunk/lib/Mail/SpamAssassin/Util.pm (original)
+++ spamassassin/trunk/lib/Mail/SpamAssassin/Util.pm Fri Dec 19 15:21:58 2014
@@ -731,12 +731,12 @@ sub qp_decode {
   # white space on a line must be deleted
   s/[ \t]+(?=\r?\n)//gs;
 
+  s/=\r?\n//gs;  # soft line breaks
+
   # RFC 2045 explicitly prohibits lowercase characters a-f in QP encoding
   # do we really want to allow them???
   s/=([0-9a-fA-F]{2})/chr(hex($1))/ge;
 
-  s/=\r?\n//gs;  # soft line breaks
-
   return $_;
 }
 



Mime
View raw message