[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE_3_3_BRANCH: kdepim/kmail
From:       Ingo Klöcker <kloecker () kde ! org>
Date:       2004-09-04 22:54:10
Message-ID: 20040904225410.96A031C67 () office ! kde ! org
[Download RAW message or body]

CVS commit by kloecker: 

Backport: Check the length before the crlf->lf conversion to avoid false alerts.


  M +2 -2      kmmsgpart.cpp   1.110.2.1


--- kdepim/kmail/kmmsgpart.cpp  #1.110:1.110.2.1
@@ -301,9 +301,9 @@ QCString KMMessagePart::bodyDecoded(void
     }
   }
-  result = result.replace( "\r\n", "\n" ); // CRLF -> LF conversion
-
   kdWarning( result.length() != (unsigned int)len, 5006 )
     << "KMMessagePart::bodyDecoded(): body is binary but used as text!" << endl;
 
+  result = result.replace( "\r\n", "\n" ); // CRLF -> LF conversion
+
   assert( mBodyDecodedSize < 0 || mBodyDecodedSize == len );
   if ( mBodyDecodedSize < 0 )


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic