Mercurial > pidgin-twitter
changeset 140:dcf980ba3f8b
url encode icon url before requesting.
author | Yoshiki Yazawa <yaz@honeyplanet.jp> |
---|---|
date | Wed, 23 Jul 2008 13:16:10 +0900 |
parents | 9871186ebf8f |
children | fc1bf6b9b540 |
files | pidgin-twitter.c |
diffstat | 1 files changed, 5 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/pidgin-twitter.c Wed Jul 23 12:09:25 2008 +0900 +++ b/pidgin-twitter.c Wed Jul 23 13:16:10 2008 +0900 @@ -1729,14 +1729,16 @@ url = g_match_info_fetch(match_info, 1); g_match_info_free(match_info); + const char *encoded_url; + encoded_url = purple_url_encode(url); + g_free(url); url = NULL; + /* request fetch image */ - if(url) { + if(encoded_url[0]) { /* reuse gotdata. just pass given one */ /* gotdata will be released in got_icon_cb */ data->fetch_data = purple_util_fetch_url(url, TRUE, NULL, TRUE, got_icon_cb, gotdata); - g_free(url); url = NULL; - twitter_debug("request %s's icon\n", user_name); } }