Revision: 7355
          http://mahogany.svn.sourceforge.net/mahogany/?rev=7355&view=rev
Author:   vadz
Date:     2007-09-01 14:30:01 -0700 (Sat, 01 Sep 2007)

Log Message:
-----------
fix off by one error in handling of malformed encoded words with missing 
encoding character ('Q' or 'B')

Modified Paths:
--------------
    trunk/M/src/mail/MimeDecode.cpp

Modified: trunk/M/src/mail/MimeDecode.cpp
===================================================================
--- trunk/M/src/mail/MimeDecode.cpp     2007-08-31 21:58:51 UTC (rev 7354)
+++ trunk/M/src/mail/MimeDecode.cpp     2007-09-01 21:30:01 UTC (rev 7355)
@@ -226,8 +226,9 @@
                break;
             }
 
-            // +2 to skip "?="
-            p += posEncWordEnd - posEncWordStart + 2;
+            // +1 to skip '?' of "?=" (don't skip '=', this will be accounted
+            // for by p increment in the loop statement)
+            p += posEncWordEnd - posEncWordStart + 1;
 
             // leave this word undecoded
             out += wxString(encWordStart, p + 1);


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Mahogany-cvsupdates mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates

Reply via email to