summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlfio Emanuele Fresta <[email protected]>2017-08-05 22:18:55 +0100
committermonsta <[email protected]>2017-08-09 13:03:50 +0300
commit387fa9979c451d0e8671b215fdb11c32148994c8 (patch)
tree5a5d47a48379a356c9a61388be301ebde6ad0004
parent3a27975c11b22a4bddf63af7f7f9fe4196fc3923 (diff)
downloadmate-notification-daemon-387fa9979c451d0e8671b215fdb11c32148994c8.tar.bz2
mate-notification-daemon-387fa9979c451d0e8671b215fdb11c32148994c8.tar.xz
unescape URI-encode paths for icon files
Fix #117
-rw-r--r--src/daemon/daemon.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/daemon/daemon.c b/src/daemon/daemon.c
index 149025a..72b94a4 100644
--- a/src/daemon/daemon.c
+++ b/src/daemon/daemon.c
@@ -955,9 +955,12 @@ static GdkPixbuf* _notify_daemon_pixbuf_from_path(const char* path)
if (!strncmp (path, "file://", 7))
{
path += 7;
+
+ /* Unescape URI-encoded, allowed characters */
+ path = g_uri_unescape_string (path, G_URI_RESERVED_CHARS_ALLOWED_IN_PATH);
}
- /* Load file */
+ /* Load file */
pixbuf = gdk_pixbuf_new_from_file (path, NULL);
}
else