[evolution-data-server/gnome-3-24] Bug 784116 - Preserve header's folding misbehaves for folded boundary parameter



commit 357a36c8fe49359c916186782b70d3a26d4e7d59
Author: James Bottomley <James Bottomley HansenPartnership com>
Date:   Mon Jun 26 11:07:42 2017 +0200

    Bug 784116 - Preserve header's folding misbehaves for folded boundary parameter

 src/camel/camel-mime-utils.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/camel/camel-mime-utils.c b/src/camel/camel-mime-utils.c
index 8dad8c2..54b081a 100644
--- a/src/camel/camel-mime-utils.c
+++ b/src/camel/camel-mime-utils.c
@@ -2064,6 +2064,8 @@ header_decode_quoted_string (const gchar **in)
                        if (c == '\\' && *intmp) {
                                intmp++;
                                skip++;
+                       } else if (c == '\n') {
+                               skip++;
                        }
                }
                outlen = intmp - inptr - skip;
@@ -2072,6 +2074,8 @@ header_decode_quoted_string (const gchar **in)
                        inptr++;
                        if (c == '\\' && *inptr) {
                                c = *inptr++;
+                       } else if (c == '\n') {
+                               continue;
                        }
                        *outptr++ = c;
                }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]