Mercurial > pidgin-twitter
changeset 324:5e0c1f59a090
icon file whose name contains utf-8 kanji characters can be retrieved now.
author | Yoshiki Yazawa <yaz@honeyplanet.jp> |
---|---|
date | Sat, 19 Sep 2009 20:39:57 +0900 |
parents | 6ebabb96485f |
children | 34af644d214a |
files | icon.c |
diffstat | 1 files changed, 7 insertions(+), 11 deletions(-) [+] |
line wrap: on
line diff
--- a/icon.c Sat Sep 19 03:43:23 2009 +0900 +++ b/icon.c Sat Sep 19 20:39:57 2009 +0900 @@ -247,17 +247,13 @@ gchar *tmp; /* url encode basename. twitter needs this. */ -#if 0 - if(service == twitter_service) - tmp = g_strdup_printf("%s/%s", url, - purple_url_encode(slash+1)); -#else - if(service == twitter_service) { - gchar *tmp0 = g_uri_escape_string(slash+1, NULL, FALSE); - tmp = g_strdup_printf("%s/%s", url, tmp0); - g_free(tmp0); - } -#endif + if(service == twitter_service) { + gchar *tmp0 = strip_html_markup(slash+1); + gchar *tmp1 = g_uri_escape_string(tmp0, NULL, FALSE); + tmp = g_strdup_printf("%s/%s", url, tmp1); + g_free(tmp0); + g_free(tmp1); + } else if(service == wassr_service) { gchar *tmp0 = NULL; tmp0 = g_regex_replace(regp[SIZE_128_WASSR], slash+1,