diff options
author | Alfio Emanuele Fresta <[email protected]> | 2017-08-05 22:18:55 +0100 |
---|---|---|
committer | raveit65 <[email protected]> | 2017-08-07 08:22:28 +0200 |
commit | 0a84eac2c5115d6a21e98e4797fbf6407cf5712b (patch) | |
tree | 99f5ae8028b82773fada0bf77ffee988de70ac81 /src | |
parent | 21f4fb4f254a9a11a55ad191c302a7f8b8f12506 (diff) | |
download | mate-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.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 |