aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/bbdb/bbdb.c
diff options
context:
space:
mode:
authorSrinivasa Ragavan <sragavan@src.gnome.org>2007-07-01 03:30:53 +0800
committerSrinivasa Ragavan <sragavan@src.gnome.org>2007-07-01 03:30:53 +0800
commit5ba7e1862f602b014e722e09e5dd7ff902fe620c (patch)
tree211c355d8a5dec04218779e652ed5f5d1c3b95b1 /plugins/bbdb/bbdb.c
parent0e41bd2003b365a6ccb4618ec3d93575e4c367dd (diff)
downloadgsoc2013-evolution-5ba7e1862f602b014e722e09e5dd7ff902fe620c.tar
gsoc2013-evolution-5ba7e1862f602b014e722e09e5dd7ff902fe620c.tar.gz
gsoc2013-evolution-5ba7e1862f602b014e722e09e5dd7ff902fe620c.tar.bz2
gsoc2013-evolution-5ba7e1862f602b014e722e09e5dd7ff902fe620c.tar.lz
gsoc2013-evolution-5ba7e1862f602b014e722e09e5dd7ff902fe620c.tar.xz
gsoc2013-evolution-5ba7e1862f602b014e722e09e5dd7ff902fe620c.tar.zst
gsoc2013-evolution-5ba7e1862f602b014e722e09e5dd7ff902fe620c.zip
** Fix for bug #334140
svn path=/trunk/; revision=33733
Diffstat (limited to 'plugins/bbdb/bbdb.c')
-rw-r--r--plugins/bbdb/bbdb.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/plugins/bbdb/bbdb.c b/plugins/bbdb/bbdb.c
index 0145f63a78..8085eaf657 100644
--- a/plugins/bbdb/bbdb.c
+++ b/plugins/bbdb/bbdb.c
@@ -195,6 +195,18 @@ bbdb_do_it (EBook *book, const char *name, const char *email)
return;
}
+ if (g_utf8_strchr (name, -1, '\"')) {
+ GString *tmp = g_string_new (name);
+ gchar *p;
+
+ while (p = g_utf8_strchr (tmp->str, tmp->len, '\"'), p)
+ tmp = g_string_erase (tmp, p - tmp->str, 1);
+
+ g_free (temp_name);
+ temp_name = g_string_free (tmp, FALSE);
+ name = temp_name;
+ }
+
/* If a contact exists with this name, add the email address to it. */
query_string = g_strdup_printf ("(is \"full_name\" \"%s\")", name);
query = e_book_query_from_string (query_string);