aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-filter-source-element.c
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2005-03-17 10:15:40 +0800
committerMichael Zucci <zucchi@src.gnome.org>2005-03-17 10:15:40 +0800
commitd521c569a074cd2a55d6519da0f865cac3b9486b (patch)
tree450c1b4e514d14d0b128e922e1699c1f5c4782da /mail/em-filter-source-element.c
parentb7f0753dbc4ebbcabc49a2afec4af8cd1a6ba974 (diff)
downloadgsoc2013-evolution-d521c569a074cd2a55d6519da0f865cac3b9486b.tar
gsoc2013-evolution-d521c569a074cd2a55d6519da0f865cac3b9486b.tar.gz
gsoc2013-evolution-d521c569a074cd2a55d6519da0f865cac3b9486b.tar.bz2
gsoc2013-evolution-d521c569a074cd2a55d6519da0f865cac3b9486b.tar.lz
gsoc2013-evolution-d521c569a074cd2a55d6519da0f865cac3b9486b.tar.xz
gsoc2013-evolution-d521c569a074cd2a55d6519da0f865cac3b9486b.tar.zst
gsoc2013-evolution-d521c569a074cd2a55d6519da0f865cac3b9486b.zip
** See bug #73559
2005-03-16 Not Zed <NotZed@Ximian.com> ** See bug #73559 * em-filter-source-element.c (em_filter_source_element_get_sources): check the url != "" and decoded before using it. svn path=/trunk/; revision=29048
Diffstat (limited to 'mail/em-filter-source-element.c')
-rw-r--r--mail/em-filter-source-element.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/mail/em-filter-source-element.c b/mail/em-filter-source-element.c
index 8196cea7b8..c35862a101 100644
--- a/mail/em-filter-source-element.c
+++ b/mail/em-filter-source-element.c
@@ -360,16 +360,17 @@ em_filter_source_element_get_sources(EMFilterSourceElement *fs)
e_iterator_next(it)) {
account = (const EAccount *)e_iterator_get(it);
- if (account->source == NULL || account->source->url == NULL)
+ if (account->source == NULL || account->source->url == NULL || account->source->url[0] == 0)
continue;
- /* hide secret stuff */
url = camel_url_new(account->source->url, NULL);
- uri = camel_url_to_string(url, CAMEL_URL_HIDE_ALL);
- camel_url_free(url);
-
- em_filter_source_element_add_source(fs, account->name, account->id->name, account->id->address, uri);
- g_free(uri);
+ if (url) {
+ /* hide secret stuff */
+ uri = camel_url_to_string(url, CAMEL_URL_HIDE_ALL);
+ camel_url_free(url);
+ em_filter_source_element_add_source(fs, account->name, account->id->name, account->id->address, uri);
+ g_free(uri);
+ }
}
g_object_unref(it);
g_object_unref(accounts);