pidgin: 5c5977a6: Update the yahoo prpl to use the new fun...

rekkanoryo at pidgin.im rekkanoryo at pidgin.im
Fri May 29 21:00:31 EDT 2009


-----------------------------------------------------------------
Revision: 5c5977a6ed3591121ef82ff587586850b9dcd176
Ancestor: a54414482c5046a5cc797c6c74afedaa45212912
Author: rekkanoryo at pidgin.im
Date: 2009-05-30T00:58:04
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/5c5977a6ed3591121ef82ff587586850b9dcd176

Modified files:
        libpurple/protocols/yahoo/yahoo.c
        libpurple/protocols/yahoo/yahoo_aliases.c

ChangeLog: 

Update the yahoo prpl to use the new function I added.  This should fix the
issue in Adium's ticket 12231.

-------------- next part --------------
============================================================
--- libpurple/protocols/yahoo/yahoo.c	ab14c05eae737d0b06c019f95b6f482d432ef08e
+++ libpurple/protocols/yahoo/yahoo.c	1578bcedd67c9c585177b6d5db953547ce001fad
@@ -1790,7 +1790,10 @@ static void yahoo_auth16_stage1_cb(Purpl
 				"yahoojp", 0);
 
 			url = g_strdup_printf(yahoojp ? YAHOOJP_LOGIN_URL : YAHOO_LOGIN_URL, token);
-			url_data = purple_util_fetch_url_request(url, TRUE, YAHOO_CLIENT_USERAGENT, TRUE, NULL, FALSE, yahoo_auth16_stage2, auth_data);
+			url_data = purple_util_fetch_url_request_len_with_account(
+					purple_connection_get_account(gc), url, TRUE,
+					YAHOO_CLIENT_USERAGENT, TRUE, NULL, FALSE, -1,
+					yahoo_auth16_stage2, auth_data);
 			g_free(url);
 			g_free(token);
 		}
@@ -1826,7 +1829,11 @@ static void yahoo_auth16_stage1(PurpleCo
 	g_free(encoded_password);
 	g_free(encoded_username);
 
-	url_data = purple_util_fetch_url_request(url, TRUE, YAHOO_CLIENT_USERAGENT, TRUE, NULL, FALSE, yahoo_auth16_stage1_cb, auth_data);
+	url_data = purple_util_fetch_url_request_len_with_account(
+			purple_connection_get_account(gc), url, TRUE,
+			YAHOO_CLIENT_USERAGENT, TRUE, NULL, FALSE, -1,
+			yahoo_auth16_stage1_cb, auth_data);
+
 	g_free(url);
 }
 
@@ -3948,8 +3955,9 @@ static void yahoo_show_inbox(PurplePlugi
 		use_whole_url ? base_url : "",
 		yd->cookie_t, yd->cookie_y);
 
-	url_data = purple_util_fetch_url_request(base_url, use_whole_url,
-			YAHOO_CLIENT_USERAGENT, TRUE, request, FALSE,
+	url_data = purple_util_fetch_url_request_len_with_account(
+			purple_connection_get_account(gc), base_url, use_whole_url,
+			YAHOO_CLIENT_USERAGENT, TRUE, request, FALSE, -1,
 			yahoo_get_inbox_token_cb, gc);
 
 	g_free(request);
@@ -4110,8 +4118,9 @@ static void yahoo_get_sms_carrier(Purple
 	if ((gc->account->proxy_info) && (gc->account->proxy_info->type == PURPLE_PROXY_HTTP))
 	    use_whole_url = TRUE;
 
-	url_data = purple_util_fetch_url_request(YAHOO_SMS_CARRIER_URL, use_whole_url,
-			YAHOO_CLIENT_USERAGENT, TRUE, request, FALSE,
+	url_data = purple_util_fetch_url_request_len_with_account(
+			purple_connection_get_account(gc), YAHOO_SMS_CARRIER_URL, use_whole_url,
+			YAHOO_CLIENT_USERAGENT, TRUE, request, FALSE, -1,
 			yahoo_get_sms_carrier_cb, data);
 
 	g_free(request);
============================================================
--- libpurple/protocols/yahoo/yahoo_aliases.c	8b6d4bbfa69c647fd56b71cc4fb3b0b4cdd60404
+++ libpurple/protocols/yahoo/yahoo_aliases.c	7de9314cab91e4c525e6f878dfaf97f93fe6db0d
@@ -175,9 +175,9 @@ yahoo_fetch_aliases(PurpleConnection *gc
 				  webaddress);
 
 	/* We have a URL and some header information, let's connect and get some aliases  */
-	url_data = purple_util_fetch_url_request(url, use_whole_url, NULL, TRUE,
-						 request, FALSE,
-						 yahoo_fetch_aliases_cb, cb);
+	url_data = purple_util_fetch_url_request_len_with_account(purple_connection_get_account(gc),
+				url, use_whole_url, NULL, TRUE, request, FALSE, -1,
+				yahoo_fetch_aliases_cb, cb);
 	if (url_data != NULL)
 		yd->url_datas = g_slist_prepend(yd->url_datas, url_data);
 
@@ -347,7 +347,9 @@ yahoo_update_alias(PurpleConnection *gc,
 				  content);
 
 	/* We have a URL and some header information, let's connect and update the alias  */
-	url_data = purple_util_fetch_url_request(url, use_whole_url, NULL, TRUE, request, FALSE, yahoo_update_alias_cb, cb);
+	url_data = purple_util_fetch_url_request_len_with_account(
+			purple_connection_get_account(gc), url, use_whole_url, NULL, TRUE,
+			request, FALSE, -1, yahoo_update_alias_cb, cb);
 	if (url_data != NULL)
 		yd->url_datas = g_slist_prepend(yd->url_datas, url_data);
 


More information about the Commits mailing list