diff src/protocols/yahoo/yahoo.c @ 8212:ad164c1ca79d

[gaim-migrate @ 8935] a yahoo web auth fix from marv that i debated whether to commit or not (as he did as well apparently fromt he message he left in the patch post) ;-) also: " Here's a large zephyr fix, tested against current CVS and also 0.75. It does thie following: Support a few additional zephyr formatting "@" tags, Using the gaim_chat_set_topic function to allow the user to set the instance that a zephyr is being sent to. Listing people in chats (really, the zephyr protocol doesn't allow for this, but I faked it by seeing who has sent to a class). Added proto options allowing for: setting the zephyr exposure (currently, just by entering the correct text string), and setting whether you want gaim to export to .zephyr.subs , and .anyone (buddy list). You also can add and remove buddies from within gaim. It also fixes a minor (but annoying bug), where random buffer garbage is sent with the zephyr, as an additional zephyr field." --Arun (att) A Tharuvai committer: Tailor Script <tailor@pidgin.im>
author Luke Schierer <lschiere@pidgin.im>
date Thu, 05 Feb 2004 16:28:51 +0000
parents 9d1a984681fe
children dcace041cfb8
line wrap: on
line diff
--- a/src/protocols/yahoo/yahoo.c	Thu Feb 05 07:38:39 2004 +0000
+++ b/src/protocols/yahoo/yahoo.c	Thu Feb 05 16:28:51 2004 +0000
@@ -1922,7 +1922,8 @@
 	GString *s;
 
 	len = read(source, buf, sizeof(buf)-1);
-	if (len <= 0  || strncmp(buf, "HTTP/1.0 302", strlen("HTTP/1.0 302"))) {
+	if (len <= 0  || (strncmp(buf, "HTTP/1.0 302", strlen("HTTP/1.0 302") &&
+			  strncmp(buf, "HTTP/1.1 302", strlen("HTTP/1.1 302"))))) {
 		gaim_connection_error(gc, _("Unable to read"));
 		return;
 	}