[evolution/gnome-3-30] I#277 - Unescape values in calendars' handle-uri signal handler



commit 79a6ceb922d4edcc328773b9edc355370a10efea
Author: Milan Crha <mcrha redhat com>
Date:   Wed Jan 9 16:53:38 2019 +0100

    I#277 - Unescape values in calendars' handle-uri signal handler
    
    Closes https://gitlab.gnome.org/GNOME/evolution/issues/277

 src/modules/calendar/e-cal-base-shell-backend.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/modules/calendar/e-cal-base-shell-backend.c b/src/modules/calendar/e-cal-base-shell-backend.c
index d42de383a0..ba3b673203 100644
--- a/src/modules/calendar/e-cal-base-shell-backend.c
+++ b/src/modules/calendar/e-cal-base-shell-backend.c
@@ -595,13 +595,13 @@ e_cal_base_shell_backend_util_handle_uri (EShellBackend *shell_backend,
                else if (g_ascii_strcasecmp (header, "enddate") == 0)
                        populate_g_date (&end_date, convert_time_from_isodate (content, zone) - 1, zone);
                else if (g_ascii_strcasecmp (header, "source-uid") == 0)
-                       source_uid = g_strdup (content);
+                       source_uid = g_uri_unescape_string (content, NULL);
                else if (g_ascii_strcasecmp (header, "comp-uid") == 0)
-                       comp_uid = g_strdup (content);
+                       comp_uid = g_uri_unescape_string (content, NULL);
                else if (g_ascii_strcasecmp (header, "comp-rid") == 0)
-                       comp_rid = g_strdup (content);
+                       comp_rid = g_uri_unescape_string (content, NULL);
                else if (g_ascii_strcasecmp (header, "new-ics") == 0)
-                       new_ics = g_strdup (content);
+                       new_ics = g_uri_unescape_string (content, NULL);
                else if (g_ascii_strcasecmp (header, "attendees") == 0)
                        attendees = g_strcmp0 (content, "true") == 0 || g_strcmp0 (content, "1") == 0;
                g_free (content);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]