changeset 30543:9af193ee13b7

propagate from branch 'im.pidgin.cpw.sulabh.yahoo' (head cfd6bbbc1b109a21d2fc5e30d829c7f6c8953a07) to branch 'im.pidgin.pidgin' (head f904ce0216ba087391ad82dc04d388600399ddd1)
author sulabh@pidgin.im
date Fri, 10 Sep 2010 08:52:09 +0000
parents 8eb46a838ce0 (diff) 812c1cc9661c (current diff)
children 718c16d7c6c9 6469c68fa093
files
diffstat 1 files changed, 8 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/yahoo/yahoo_filexfer.c	Fri Sep 10 01:44:38 2010 +0000
+++ b/libpurple/protocols/yahoo/yahoo_filexfer.c	Fri Sep 10 08:52:09 2010 +0000
@@ -1253,7 +1253,14 @@
 	if (xd->txbuflen == 0)
 	{
 		gchar* cookies;
-		cookies = yahoo_get_cookies(gc);
+		YahooData *yd = gc->proto_data;
+
+		/* cookies = yahoo_get_cookies(gc);
+		 * This doesn't seem to be working. The function is returning NULL, which yahoo servers don't like
+		 * For now let us not use this function */
+
+		cookies = g_strdup_printf("Y=%s; T=%s", yd->cookie_y, yd->cookie_t);
+
 		if(purple_xfer_get_type(xfer) == PURPLE_XFER_SEND && xd->status_15 == ACCEPTED)
 		{
 			if(xd->info_val_249 == 2)