geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rickmcgu...@apache.org
Subject svn commit: r670522 - /geronimo/specs/trunk/geronimo-javamail_1.4_spec/src/main/java/org/apache/geronimo/mail/util/QuotedPrintableEncoder.java
Date Mon, 23 Jun 2008 11:21:15 GMT
Author: rickmcguire
Date: Mon Jun 23 04:21:15 2008
New Revision: 670522

URL: http://svn.apache.org/viewvc?rev=670522&view=rev
Log:
GERONIMO-4142 Quoted-printable encoder/decoder problem with an "=" that immediately precedes
a line break. 

Uncovered by James test suite 


Modified:
    geronimo/specs/trunk/geronimo-javamail_1.4_spec/src/main/java/org/apache/geronimo/mail/util/QuotedPrintableEncoder.java

Modified: geronimo/specs/trunk/geronimo-javamail_1.4_spec/src/main/java/org/apache/geronimo/mail/util/QuotedPrintableEncoder.java
URL: http://svn.apache.org/viewvc/geronimo/specs/trunk/geronimo-javamail_1.4_spec/src/main/java/org/apache/geronimo/mail/util/QuotedPrintableEncoder.java?rev=670522&r1=670521&r2=670522&view=diff
==============================================================================
--- geronimo/specs/trunk/geronimo-javamail_1.4_spec/src/main/java/org/apache/geronimo/mail/util/QuotedPrintableEncoder.java
(original)
+++ geronimo/specs/trunk/geronimo-javamail_1.4_spec/src/main/java/org/apache/geronimo/mail/util/QuotedPrintableEncoder.java
Mon Jun 23 04:21:15 2008
@@ -499,7 +499,7 @@
 
     private void checkLineLength(int required) throws IOException {
         // if we're at our line length limit, write out a soft line break and reset.
-        if ((lineCount + required) > lineLength ) {
+        if ((lineCount + required) >= lineLength ) {
             out.write('=');
             out.write('\r');
             out.write('\n');



Mime
View raw message