commit c7eb32b1b9582c298aba7213f4cb68b507b4248a
parent 358eb11a499435f41d49ce4a5683c6428dcac750
Author: Tristan Chabredier <wwp@claws-mail.org>
Date: Wed, 21 Oct 2009 14:07:50 +0000
2009-10-21 [wwp] 3.7.3cvs7
* src/common/utils.c
Don't core dump when attempting to insert a non-existing
file using a mailto: uri (g_error does core dump).
Diffstat:
4 files changed, 13 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
@@ -1,3 +1,9 @@
+2009-10-21 [wwp] 3.7.3cvs7
+
+ * src/common/utils.c
+ Don't core dump when attempting to insert a non-existing
+ file using a mailto: uri (g_error does core dump).
+
2009-10-20 [colin] 3.7.3cvs6
* src/common/utils.c
diff --git a/PATCHSETS b/PATCHSETS
@@ -3880,3 +3880,4 @@
( cvs diff -u -r 1.1.2.5 -r 1.1.2.6 src/common/w32lib.h; ) > 3.7.3cvs4.patchset
( cvs diff -u -r 1.1.2.64 -r 1.1.2.65 src/plugins/pgpcore/sgpgme.c; ) > 3.7.3cvs5.patchset
( cvs diff -u -r 1.36.2.175 -r 1.36.2.176 src/common/utils.c; ) > 3.7.3cvs6.patchset
+( cvs diff -u -r 1.36.2.176 -r 1.36.2.177 src/common/utils.c; ) > 3.7.3cvs7.patchset
diff --git a/configure.ac b/configure.ac
@@ -12,7 +12,7 @@ MINOR_VERSION=7
MICRO_VERSION=3
INTERFACE_AGE=0
BINARY_AGE=0
-EXTRA_VERSION=6
+EXTRA_VERSION=7
EXTRA_RELEASE=
EXTRA_GTK2_VERSION=
diff --git a/src/common/utils.c b/src/common/utils.c
@@ -1635,8 +1635,13 @@ gint scan_mailto_url(const gchar *mailto, gchar **from, gchar **to, gchar **cc,
*body = decode_uri_gdup(value);
} else if (body && !*body && !g_ascii_strcasecmp(field, "insert")) {
gchar *tmp = decode_uri_gdup(value);
+<<<<<<< utils.c
+ if (!g_file_get_contents(value, body, NULL, NULL)) {
+ g_warning("Error: couldn't set insert file '%s' in body\n", value);
+=======
if (!g_file_get_contents(tmp, body, NULL, NULL)) {
g_warning("Error: couldn't set insert file '%s' in body\n", value);
+>>>>>>> 1.36.2.176
}
g_free(tmp);
tmp = NULL;