summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMilan Crha <mcrha@src.gnome.org>2007-08-14 14:17:12 +0000
committerMilan Crha <mcrha@src.gnome.org>2007-08-14 14:17:12 +0000
commit6d950088433b5d8c9803757df99c24e0412ac00c (patch)
tree539ff7f315bd7d1a9b3316e504a9569f80873fdb
parentad41c9d4c9078bc3c910265b6bbd44998989d698 (diff)
downloadevolution-data-server-6d950088433b5d8c9803757df99c24e0412ac00c.tar.gz
2007-08-14 mcrha Fix for bug #356176 by Patrick Ohly
svn path=/trunk/; revision=7955
-rw-r--r--addressbook/ChangeLog8
-rw-r--r--addressbook/libebook/e-vcard.c6
2 files changed, 14 insertions, 0 deletions
diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog
index d1f972f8e..986b8ee1d 100644
--- a/addressbook/ChangeLog
+++ b/addressbook/ChangeLog
@@ -1,3 +1,11 @@
+2007-08-14 Milan Crha <mcrha@redhat.com>
+
+ ** Fix for bug #356176 by Patrick Ohly
+
+ * libebook/e-vcard.c: (read_attribute_value):
+ Skip over folding by calling skip_newline() to find
+ the next real character after a backslash.
+
2007-08-10 Matthew Barnes <mbarnes@redhat.com>
* backends/file/e-book-backend-file.c:
diff --git a/addressbook/libebook/e-vcard.c b/addressbook/libebook/e-vcard.c
index 20e40f749..287f8621e 100644
--- a/addressbook/libebook/e-vcard.c
+++ b/addressbook/libebook/e-vcard.c
@@ -273,6 +273,12 @@ read_attribute_value (EVCardAttribute *attr, char **p, gboolean quoted_printable
g_string_append_c (str, '\\');
break;
}
+
+ /* beware, there might be a line break due to folding,
+ * need next real character
+ */
+ lp = skip_newline (lp, quoted_printable);
+
switch (*lp) {
case 'n': g_string_append_c (str, '\n'); break;
case 'N': g_string_append_c (str, '\n'); break;