[evolution-exchange] Downstream bug bnc#694001 attachment name corruption
- From: Punit Jain <jpunit src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-exchange] Downstream bug bnc#694001 attachment name corruption
- Date: Fri, 22 Jul 2011 14:00:03 +0000 (UTC)
commit d6359853d37e902f77525e84cc7ffa455a98c6f7
Author: Punit Jain <jpunit novell com>
Date: Fri Jul 22 19:28:11 2011 +0530
Downstream bug bnc#694001 attachment name corruption
calendar/e-cal-backend-exchange.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/calendar/e-cal-backend-exchange.c b/calendar/e-cal-backend-exchange.c
index ebdcafc..a6e6e24 100644
--- a/calendar/e-cal-backend-exchange.c
+++ b/calendar/e-cal-backend-exchange.c
@@ -1846,7 +1846,10 @@ build_msg ( ECalBackendExchange *cbex, ECalComponent *comp, const gchar *subject
if (!strncmp ((gchar *)l->data, "file://", 7)) {
fname = g_filename_from_uri ((gchar *) l->data, NULL, NULL);
filename = g_path_get_basename (fname);
- mime_filename = g_strdup (filename + strlen (uid) + 1);
+ if (g_str_has_prefix (filename, uid))
+ mime_filename = g_strdup (filename + strlen(uid) + 1);
+ else
+ mime_filename = g_strdup (filename);
g_free (filename);
attach_file = fname;
} else {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]