** Fix for bug #334140

svn path=/trunk/; revision=33733
This commit is contained in:
Srinivasa Ragavan
2007-06-30 19:30:53 +00:00
parent 0e41bd2003
commit 5ba7e1862f
2 changed files with 18 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2007-06-25 Milan Crha <mcrha@redhat.com>
** Fix for bug #334140
* bbdb.c: (bbdb_do_it): Strip '\"' out of name part, if exists.
2007-06-07 Gilles Dartiguelongue <dartigug@esiee.fr>
* gaimbuddies.c: (get_node_text), (parse_contact): more compilation

View File

@ -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);