summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlfio Emanuele Fresta <[email protected]>2017-08-05 22:18:55 +0100
committerraveit65 <[email protected]>2017-08-07 08:22:28 +0200
commit0a84eac2c5115d6a21e98e4797fbf6407cf5712b (patch)
tree99f5ae8028b82773fada0bf77ffee988de70ac81 /src
parent21f4fb4f254a9a11a55ad191c302a7f8b8f12506 (diff)
downloadmate-notification-daemon-0a84eac2c5115d6a21e98e4797fbf6407cf5712b.tar.bz2
mate-notification-daemon-0a84eac2c5115d6a21e98e4797fbf6407cf5712b.tar.xz
unescape URI-encode paths for icon files
Fix #117
Diffstat (limited to 'src')
-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