2003-05-06  Not Zed  <NotZed@Ximian.com>

        ** See bug #42400

        * mail-tools.c (meta_data_key): protect against getting an
        unparsable uri.

svn path=/trunk/; revision=21119
This commit is contained in:
Not Zed
2003-05-07 00:53:40 +00:00
committed by Michael Zucci
parent f9991e3982
commit ba201c0f99
2 changed files with 15 additions and 0 deletions

View File

@ -1,3 +1,10 @@
2003-05-06 Not Zed <NotZed@Ximian.com>
** See bug #42400
* mail-tools.c (meta_data_key): protect against getting an
unparsable uri.
2003-05-05 Not Zed <NotZed@Ximian.com>
** See bug #42294.

View File

@ -508,6 +508,14 @@ static char *meta_data_key(const char *uri, char **pathp)
char *p, c;
url = camel_url_new(uri, NULL);
if (url == NULL) {
g_warning("Trying to retrieve meta-data for unparsable uri: %s", uri);
*pathp = g_build_path(evolution_dir, "meta/unknown", NULL);
return g_strdup("folder");
}
path = g_string_new(evolution_dir);
g_string_append_printf(path, "/meta/%s/", url->protocol);