changeset 27938:5ac6739bc73b

propagate from branch 'im.pidgin.pidgin' (head 5ac03deda57981951c593dd61f0aef4d31625eec) to branch 'im.pidgin.pidgin.yaz' (head 4605ed8d3c511aaf913c05d355d8bbc7f25db9c0)
author Yoshiki Yazawa <yaz@honeyplanet.jp>
date Wed, 08 Apr 2009 11:00:19 +0000
parents 1337d2813b2d (current diff) bf5b74b2a483 (diff)
children 26f40c154689
files
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/finch/plugins/gnttinyurl.c	Tue Apr 07 14:32:50 2009 +0000
+++ b/finch/plugins/gnttinyurl.c	Wed Apr 08 11:00:19 2009 +0000
@@ -293,9 +293,9 @@
 		cbdata->conv = conv;
 		tmp = purple_unescape_html((char *)iter->data);
 		if (g_ascii_strncasecmp(tmp, "http://", 7) && g_ascii_strncasecmp(tmp, "https://", 8)) {
-			url = g_strdup_printf("%shttp://%s", purple_prefs_get_string(PREF_URL), tmp);
+			url = g_strdup_printf("%shttp%%3A%%2F%%2F%s", purple_prefs_get_string(PREF_URL), purple_url_encode(tmp));
 		} else {
-			url = g_strdup_printf("%s%s", purple_prefs_get_string(PREF_URL), tmp);
+			url = g_strdup_printf("%s%s", purple_prefs_get_string(PREF_URL), purple_url_encode(tmp));
 		}
 		g_free(tmp);
 		purple_util_fetch_url(url, TRUE, "finch", FALSE, url_fetched, cbdata);