From 2cac53520241cc81ad21594b269308cedb2fbef5 Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Thu, 9 Apr 2009 10:58:37 +0000 Subject: ** Fix for bug #574248 2009-04-09 Milan Crha ** Fix for bug #574248 * google-contacts-source.c: (plugin_google_contacts): * google-source.c: (plugin_google): Compare base URI case insensitively. svn path=/trunk/; revision=37507 --- plugins/google-account-setup/ChangeLog | 8 ++++++++ plugins/google-account-setup/google-contacts-source.c | 2 +- plugins/google-account-setup/google-source.c | 3 +-- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/plugins/google-account-setup/ChangeLog b/plugins/google-account-setup/ChangeLog index 18fc973fe8..4d8e8b1ecb 100644 --- a/plugins/google-account-setup/ChangeLog +++ b/plugins/google-account-setup/ChangeLog @@ -1,3 +1,11 @@ +2009-04-09 Milan Crha + + ** Fix for bug #574248 + + * google-contacts-source.c: (plugin_google_contacts): + * google-source.c: (plugin_google): + Compare base URI case insensitively. + 2009-04-07 Tobias Mueller ** Fixes bug #578034 diff --git a/plugins/google-account-setup/google-contacts-source.c b/plugins/google-account-setup/google-contacts-source.c index 2ae9fba7b0..6d9697194b 100644 --- a/plugins/google-account-setup/google-contacts-source.c +++ b/plugins/google-account-setup/google-contacts-source.c @@ -300,7 +300,7 @@ plugin_google_contacts (EPlugin *epl, g_object_set_data (G_OBJECT (epl), "gwidget", NULL); - if (strcmp (base_uri, "google://")) { + if (g_ascii_strncasecmp ("google://", base_uri, 9) != 0) { return NULL; } diff --git a/plugins/google-account-setup/google-source.c b/plugins/google-account-setup/google-source.c index d0ff94b694..181984c538 100644 --- a/plugins/google-account-setup/google-source.c +++ b/plugins/google-account-setup/google-source.c @@ -575,8 +575,7 @@ plugin_google (EPlugin *epl, group = e_source_peek_group (source); widget = NULL; - if (!g_str_has_prefix (e_source_group_peek_base_uri (group), - "Google")) { + if (g_ascii_strncasecmp ("google://", e_source_group_peek_base_uri (group), 9) != 0) { return NULL; } -- cgit