2013-03-15 [colin] 3.9.0cvs126
authorColin Leroy <colin@colino.net>
Fri, 15 Mar 2013 09:33:27 +0000 (09:33 +0000)
committerColin Leroy <colin@colino.net>
Fri, 15 Mar 2013 09:33:27 +0000 (09:33 +0000)
* src/plugins/fancy/fancy_viewer.c
Fix attached images URIs generation
* src/plugins/vcalendar/vcal_folder.c
Fix crash on NULL uri

ChangeLog
PATCHSETS
configure.ac
src/plugins/fancy/fancy_viewer.c
src/plugins/vcalendar/vcal_folder.c

index ef2588f538e03e772286836574b225932aa3a9a6..f4a0b24b0f40ee14ee5341798ead6f21e7d63721 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2013-03-15 [colin]     3.9.0cvs126
+
+       * src/plugins/fancy/fancy_viewer.c
+               Fix attached images URIs generation
+       * src/plugins/vcalendar/vcal_folder.c
+               Fix crash on NULL uri
+
 2013-03-14 [colin]     3.9.0cvs125
 
        * src/plugins/fancy/fancy_viewer.c
index 7276fe8cc8c38b552511be13904e0282be1b0d41..a8ad563c32541d6211d594c43028481d96638888 100644 (file)
--- a/PATCHSETS
+++ b/PATCHSETS
 ( cvs diff -u -r 1.1.2.7 -r 1.1.2.8 src/plugins/fancy/fancy_viewer.h;  ) > 3.9.0cvs123.patchset
 ( cvs diff -u -r 1.1.2.5 -r 1.1.2.6 src/plugins/fancy/Makefile.am;  diff -u /dev/null src/plugins/fancy/claws.def;  diff -u /dev/null src/plugins/fancy/plugin.def;  diff -u /dev/null src/plugins/fancy/version.rc;  ) > 3.9.0cvs124.patchset
 ( cvs diff -u -r 1.1.2.8 -r 1.1.2.9 src/plugins/fancy/fancy_viewer.c;  ) > 3.9.0cvs125.patchset
+( cvs diff -u -r 1.1.2.9 -r 1.1.2.10 src/plugins/fancy/fancy_viewer.c;  cvs diff -u -r 1.1.2.1 -r 1.1.2.2 src/plugins/vcalendar/vcal_folder.c;  ) > 3.9.0cvs126.patchset
index 63729ffc438b0963cdfe312b201781f4b3471156..94498f7e0accee742b3577e412b775d9b3ee42d4 100644 (file)
@@ -12,7 +12,7 @@ MINOR_VERSION=9
 MICRO_VERSION=0
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=125
+EXTRA_VERSION=126
 EXTRA_RELEASE=
 EXTRA_GTK2_VERSION=
 
index b04d526df044522bdeb6844db6e89547f9e7d363..7581f82f40151497af6da2e000efd5c2dc00c001 100644 (file)
@@ -414,7 +414,7 @@ static void resource_request_starting_cb(WebKitWebView              *view,
                                if ((err = procmime_get_part(filename, partinfo)) < 0)
                                        alertpanel_error(_("Couldn't save the part of multipart message: %s"),
                                                                                strerror(-err));
-                               gchar *file_uri = g_strconcat("file://", filename, NULL);
+                               gchar *file_uri = g_filename_to_uri(filename, NULL, NULL);
                                webkit_network_request_set_uri(request, file_uri);
                                g_free(file_uri);
                                g_free(filename);
index 76209920f409319c03462eeba74a6acd5b383dd0..1e24a097aa9c10be7e0b30dced2bcad0d5c42b68 100644 (file)
@@ -1988,6 +1988,9 @@ gboolean vcal_subscribe_uri(Folder *folder, const gchar *uri)
        if (folder->klass != vcal_folder_get_class())
                return FALSE;
 
+       if (uri == NULL)
+               return FALSE;
+
        if (!strncmp(uri, "webcal://", 9)) {
                tmp = g_strconcat("http://", uri+9, NULL);
        } else {