# HG changeset patch # User Yoshiki Yazawa # Date 1216786570 -32400 # Node ID dcf980ba3f8b2c025f1f81cd54a4a64d7a534b03 # Parent 9871186ebf8feb33d39b84d5013f6a13bc543f76 url encode icon url before requesting. diff -r 9871186ebf8f -r dcf980ba3f8b pidgin-twitter.c --- 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); } }