diff options
author | Daniel Kamil Kozar <dkk089@gmail.com> | 2017-09-25 01:10:18 +0200 |
---|---|---|
committer | Daniel Kamil Kozar <dkk089@gmail.com> | 2017-09-25 01:10:18 +0200 |
commit | 9e3ca44236b5072131101caf647a98b5f1d9b984 (patch) | |
tree | 7f978da254daec3c0e92db3f8c709da2b5219a10 | |
parent | 48414b384b20d26fde67106777fa377092d56db3 (diff) | |
download | pidgin-9e3ca44236b5072131101caf647a98b5f1d9b984.tar.gz |
Don't escape brackets in URIs passed to pidgin_notify_uri
Imported from https://developer.pidgin.im/ticket/16391 , authored by
cyisfor . Prevents escaping brackets in order for IPv6 links to work
properly.
-rw-r--r-- | pidgin/gtknotify.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pidgin/gtknotify.c b/pidgin/gtknotify.c index f1e1bae736..fda2f51ab0 100644 --- a/pidgin/gtknotify.c +++ b/pidgin/gtknotify.c @@ -1290,7 +1290,8 @@ pidgin_notify_uri(const char *uri) containing $(xterm) was causing xterm to start on his system. This is obviously a bug on his system, but it's pretty easy for us to protect against it. */ - uri_escaped = g_uri_escape_string(uri, ":;/%#,+?=&@", FALSE); + uri_escaped = g_uri_escape_string(uri, "[]:;/%#,+?=&@", FALSE); + purple_debug_info("gtknotify", "Escaped URI: \"%s\" -> %s\n", uri, uri_escaped); web_browser = purple_prefs_get_string(PIDGIN_PREFS_ROOT "/browsers/browser"); |