diff options
author | Federico Mena Quintero <federico@ximian.com> | 2003-07-16 03:47:57 +0800 |
---|---|---|
committer | Federico Mena Quintero <federico@src.gnome.org> | 2003-07-16 03:47:57 +0800 |
commit | 32380aa7c9a7d50f47d7b50780c560da6ce5fe3c (patch) | |
tree | 93114df8bd6407dbd96d4a137562fb75fc36e1ad | |
parent | feff37573756a1e7f02079e32cee51bffec086a3 (diff) | |
download | gsoc2013-evolution-32380aa7c9a7d50f47d7b50780c560da6ce5fe3c.tar.gz gsoc2013-evolution-32380aa7c9a7d50f47d7b50780c560da6ce5fe3c.tar.zst gsoc2013-evolution-32380aa7c9a7d50f47d7b50780c560da6ce5fe3c.zip |
Handle invalid URIs, or more likely, the last empty element in a URI list
2003-07-15 Federico Mena Quintero <federico@ximian.com>
* folder-browser.c (message_list_drag_data_received): Handle
invalid URIs, or more likely, the last empty element in a URI list
--- g_strsplit() will yield { "uri1", "", NULL }. Fixes #46398.
* component-factory.c (destination_folder_handle_drop): Likewise.
svn path=/trunk/; revision=21818
-rw-r--r-- | mail/ChangeLog | 8 | ||||
-rw-r--r-- | mail/component-factory.c | 4 | ||||
-rw-r--r-- | mail/folder-browser.c | 4 |
3 files changed, 16 insertions, 0 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog index 0632fb7935..361700937e 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,3 +1,11 @@ +2003-07-15 Federico Mena Quintero <federico@ximian.com> + + * folder-browser.c (message_list_drag_data_received): Handle + invalid URIs, or more likely, the last empty element in a URI list + --- g_strsplit() will yield { "uri1", "", NULL }. Fixes #46398. + + * component-factory.c (destination_folder_handle_drop): Likewise. + 2003-07-15 Yuedong Du <yuedong.du@sun.com> * mail-config.c: (config_write_style), (mail_config_init): remove diff --git a/mail/component-factory.c b/mail/component-factory.c index a228868a58..b3077f5699 100644 --- a/mail/component-factory.c +++ b/mail/component-factory.c @@ -630,6 +630,10 @@ destination_folder_handle_drop (EvolutionShellComponentDndDestinationFolder *des uri = camel_url_new (url, NULL); g_free (url); + + if (!uri) + continue; + url = uri->path; uri->path = NULL; camel_url_free (uri); diff --git a/mail/folder-browser.c b/mail/folder-browser.c index b48f3f4b61..8a15cc4135 100644 --- a/mail/folder-browser.c +++ b/mail/folder-browser.c @@ -533,6 +533,10 @@ message_list_drag_data_received (ETree *tree, int row, ETreePath path, int col, uri = camel_url_new (url, NULL); g_free (url); + + if (!uri) + continue; + url = uri->path; uri->path = NULL; camel_url_free (uri); |