Author: juraj
Date: 2008-01-30 10:01:30 -0500 (Wed, 30 Jan 2008)
New Revision: 94383
Modified:
trunk/mcs/class/System/System.Net.Mail/ChangeLog
trunk/mcs/class/System/System.Net.Mail/SmtpClient.cs
Log:
2008-01-29 Juraj Skripsky <[EMAIL PROTECTED]>
* SmtpClient.cs (ToQuotedPrintable): Escape the escape character "=".
Modified: trunk/mcs/class/System/System.Net.Mail/ChangeLog
===================================================================
--- trunk/mcs/class/System/System.Net.Mail/ChangeLog 2008-01-30 14:57:10 UTC
(rev 94382)
+++ trunk/mcs/class/System/System.Net.Mail/ChangeLog 2008-01-30 15:01:30 UTC
(rev 94383)
@@ -1,5 +1,9 @@
2008-01-29 Juraj Skripsky <[EMAIL PROTECTED]>
+ * SmtpClient.cs (ToQuotedPrintable): Escape the escape character "=".
+
+2008-01-29 Juraj Skripsky <[EMAIL PROTECTED]>
+
* SmtpClient.cs: Remove ':' from the time zone offset in the
mail's date field. Fixes bug #351443.
(ToQuotedPrintable): Make sure text encoded as quoted-printable does
Modified: trunk/mcs/class/System/System.Net.Mail/SmtpClient.cs
===================================================================
--- trunk/mcs/class/System/System.Net.Mail/SmtpClient.cs 2008-01-30
14:57:10 UTC (rev 94382)
+++ trunk/mcs/class/System/System.Net.Mail/SmtpClient.cs 2008-01-30
15:01:30 UTC (rev 94383)
@@ -923,10 +923,11 @@
int charsInLine = 0;
int curLen;
StringBuilder sb = new StringBuilder("=", 3);
+ byte equalSign = (byte)'=';
char c = (char)0;
foreach (byte i in bytes) {
- if (i > 127) {
+ if (i > 127 || i == equalSign) {
sb.Length = 1;
sb.Append(Convert.ToString (i,
16).ToUpperInvariant ());
curLen = 3;
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches