[evolution/wip/webkit2] Bug 767335 - Attachment names are not URL-decoded
- From: Tomas Popela <tpopela src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/wip/webkit2] Bug 767335 - Attachment names are not URL-decoded
- Date: Wed, 29 Jun 2016 15:06:39 +0000 (UTC)
commit ccaacda1ab88a3dc8c76d480f1fefb3d3467e015
Author: Milan Crha <mcrha redhat com>
Date: Tue Jun 14 15:25:23 2016 +0200
Bug 767335 - Attachment names are not URL-decoded
calendar/gui/e-comp-editor.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/calendar/gui/e-comp-editor.c b/calendar/gui/e-comp-editor.c
index 6650308..e58a78d 100644
--- a/calendar/gui/e-comp-editor.c
+++ b/calendar/gui/e-comp-editor.c
@@ -673,9 +673,12 @@ ece_save_component_attachments_sync (ECalClient *cal_client,
if (g_ascii_strncasecmp (uri, "file://", 7) == 0 &&
!g_str_has_prefix (uri + 7, target_filename_prefix)) {
GFile *source, *destination;
+ gchar *decoded_filename;
gchar *target_filename;
- target_filename = g_strconcat (target_filename_prefix, strrchr (uri, '/') +
1, NULL);
+ decoded_filename = g_uri_unescape_string (strrchr (uri, '/') + 1, NULL);
+ target_filename = g_strconcat (target_filename_prefix, decoded_filename,
NULL);
+ g_free (decoded_filename);
source = g_file_new_for_uri (uri);
destination = g_file_new_for_path (target_filename);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]