diff options
author | Alfio Emanuele Fresta <[email protected]> | 2017-08-05 22:18:55 +0100 |
---|---|---|
committer | monsta <[email protected]> | 2017-08-09 13:03:50 +0300 |
commit | 387fa9979c451d0e8671b215fdb11c32148994c8 (patch) | |
tree | 5a5d47a48379a356c9a61388be301ebde6ad0004 /src/daemon | |
parent | 3a27975c11b22a4bddf63af7f7f9fe4196fc3923 (diff) | |
download | mate-notification-daemon-387fa9979c451d0e8671b215fdb11c32148994c8.tar.bz2 mate-notification-daemon-387fa9979c451d0e8671b215fdb11c32148994c8.tar.xz |
unescape URI-encode paths for icon files
Fix #117
Diffstat (limited to 'src/daemon')
-rw-r--r-- | src/daemon/daemon.c | 5 |
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 |